On Dec 10, 7:54 pm, RhythmicDevil <[email protected]> wrote: > I have been going around and around with this this morning trying to > sort out the correct syntax for an $or containing multiple $regex > > So in RockMongo I use this: > > { > "$or" : [ > {"ingredient" : {"$regex" : /^aru/i}}, > {"ingredient" : {"$regex" : /^bro/i}}, > ]
why would you use 2 regexes for that /^(aru|bro)/i is the same thing AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
