DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
How can I use a regex variable in a query for MongoDB
var stream = collection.find({"FirstName": new RegExp(val)}).stream();
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#How
#I
#regex
#variable
#query
#MongoDB
ADD COMMENT
Topic
COMMENT
Name
6+2 =
Submit