how to search string within a string
i want to search string with in a string
for example
if may database contains a entry "nokia apple samsung sony honey"
i want to search for the word "apple"
pl. help
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
i want to search string with in a string
for example
if may database contains a entry "nokia apple samsung sony honey"
i want to search for the word "apple"
pl. help
For searching within the database you can use regular expression. For searching within text (after you get the string from the database), you can use any JavaScript function or library out there.
pl. suggest any function
or any example, please
You should be able to find many examples how to parse/search strings on the Internet with JavaScript.
i am using return '{"bizname":{"$regex":"^'+value+'", "$options":"i"}}';
i can not understand how to use .match()