[DOCS-1795] regex example missing curly brace Created: 10/Aug/13  Updated: 11/Jan/17  Resolved: 15/Aug/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Task Priority: Trivial - P5
Reporter: Thomas Boyd Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 26 weeks, 6 days ago

 Description   

On the page http://docs.mongodb.org/manual/reference/operator/regex/

the following example:

db.collection.find( { field:

{ $regex: /acme.*corp/i, $nin: [ 'acmeblahcorp' ] }

);

Needs an extra curly brace:

db.collection.find( { field: { $regex: /acme.*corp/i, $nin: [ 'acmeblahcorp' ] }} );



 Comments   
Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1795: fixing syntax
Branch: v2.2
https://github.com/mongodb/docs/commit/b2b5e7b46d9c4d17c799afd4369ab2313ba1b66d

Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1795: fixing syntax
Branch: master
https://github.com/mongodb/docs/commit/f9f610aff51b176ef2d5164a76a84e6918c29ffb

Generated at Thu Feb 08 07:41:55 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.