SHARE
TWEET

Untitled

a guest Jun 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. db.getCollection('users').find(
  2.      {"email":{ $regex: new RegExp(test.23@test.com, "i") }
  3. })
  4.  
  5. db.getCollection('users').find(
  6.          {"email":{ $regex: new RegExp(/test.23@test.com/, "i") }
  7. })
  8.  
  9. db.getCollection('users').find(
  10.          {"email":{ $regex: new RegExp(/^(test.23@test.com)$/, "i") }
  11. })
  12.  
  13. db.getCollection('users').find(
  14.          {"email":{ $regex: new RegExp(/^(test.23@test.com)$/, "i") }
  15. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top