Nope
Neither
return('{"Client":{$regex: "'+ value +'", $option: 'i'}}');
or this works
return('{"Client":{$regex: "'+ value +'", $options: 'i'}}');
The error
Uncaught SyntaxError: Unexpected string
Nope
Neither
return('{"Client":{$regex: "'+ value +'", $option: 'i'}}');
or this works
return('{"Client":{$regex: "'+ value +'", $options: 'i'}}');
The error
Uncaught SyntaxError: Unexpected string
I have tried quite a few options. There seems to be no consistency in Java syntax translations.
This works but has no effect on case and is useless
{"Client":{$regex: "'+ value +'", $option: "i"};
Any news on this. Thx
Hi Deon,
Sorry, no news, working on it.
Apologies for my impatience ![]()
Hello! Please try this way prereturn '{"Client":{$regex: "'+ value +'", $options: "i"}}';/pre
Maryna........ you are brilliant! Thank you.
it is working fine, but not searching in between string
for example
if datafield = "mother father"
above js searches for mother only
how to search father
Hello! Not sure I understand the question. Could you clarify what string have you set for search and what strings should have been found, but they're not?