[SERVER-322] $in and regular expressions Created: 30/Sep/09  Updated: 09/Apr/19  Resolved: 09/Mar/10

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 1.3.4

Type: Improvement Priority: Minor - P4
Reporter: Nicolas Fouché Assignee: Aaron Staple
Resolution: Done Votes: 6
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Do you plan to support regular expressions in $in queries ?

http://pastie.org/636463

> j =

{ name: "mongo"}

;

{"name" : "mongo"}

> db.things.save(j);
> db.things.find(

{name: /.*mongo.*/i}

);

{"_id" : ObjectId( "4ac3312ffce86d635643cb7c") , "name" : "mongo"}

> db.things.find({name:{$in: [/.*mongo.*/i]}});
>



 Comments   
Comment by auto [ 09/Mar/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-322 cleanup
http://github.com/mongodb/mongo/commit/6820535ea7661e9e7cd49ef7e1edcbc050f0f1bf

Comment by auto [ 08/Mar/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-322 $nin and regex
http://github.com/mongodb/mongo/commit/6c7dc2b0f8831fac6621f125889d873241588b02

Comment by auto [ 08/Mar/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-322 implement $in with regex
http://github.com/mongodb/mongo/commit/6d095cf3574b7791155b22c5c9f4f13c464df9c8

Generated at Thu Feb 08 02:53:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.