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
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()