My documents looks like this.
{
"sId": "s1",
"source": "September Challenge 1"
},
{
"sId": "s2",
"source": "other string multi word"
},
{
"sId": "s3",
"source": "September sub string to filter Challenge"
}
I was trying to find the documents only without substring " sub string to filter ". The expected result is:
{
"sId": "s1",
"source": "September Challenge 1"
},
{
"sId": "s2",
"source": "other string multi word"
},
Which regexp should I use?
I have tried different regexps but haven't achive the expected result. I saw Exclude string from MongoDB regex, but I failed to adapt the answer to my situation.