You can use the $where operator in the following fashion:
db.col.find({$where: "\"my regex\".match(this.regex)"})
More Related Contents:
- MongoDB Regex Search on Integer Value
- How can I use ‘Not Like’ operator in MongoDB
- How do I make case-insensitive queries on Mongodb?
- MongoDB, performance of query by regular expression on indexed fields
- Mongodb match accented characters as underlying character
- Combining $regex and $or operators in Mongo
- Case insensitive search in Mongo
- Implement auto-complete feature using MongoDB search
- How can I match “anything up until this sequence of characters” in a regular expression?
- Regular expression to match any character being repeated more than 10 times
- Parsing scientific notation sensibly?
- Regex Last occurrence?
- Regular expression to match string starting with a specific word
- How to wisely combine shingles and edgeNgram to provide flexible full text search?
- Regular expression negative lookahead
- Find numbers after specific text in a string with RegEx
- Regex for time in hh:mm am/pm format
- Email validation using regular expression in JSF 2 / PrimeFaces
- Grammatical inference of regular expressions for given finite list of representative strings?
- Regex get domain name from email
- Using sed and grep/egrep to search and replace
- Regular Expression to exclude set of Keywords
- Remove square brackets from a string vector
- Regular Expression – How to find a match within a match?
- Regex Letters, Numbers, Dashes, and Underscores
- How to replace only part of found text?
- Can I use an OR in regex without capturing what’s enclosed?
- How to make “grep” read patterns from a file?
- How to measure similarity between strings?
- “UnicodeEncodeError: ‘ascii’ codec can’t encode character”