I'm doing some work with mongodb and Regex.
So, I have run:
{
"email": /@/
}
Now I want to say:
{
"email": does not contain @
}
any help would be appreciated
{email: /^[^@]*$/}
.{email: {$not: /@/}}
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With