i want to know how to search and display string from group of string like google display the word which we search…
the following example from google
search word is google books
result
Search and preview millions of books from libraries and publishers worldwide using Google Book Search. Discover a new favorite or unearth an old classic.
i would like to do this type of one…
thanks and advance
This should do a case-insensitive search and replace of your search string so that it becomes wrapped by
<strong>tags.Note, however, it will not match if you provide a search string of “Google Books” (note the ‘s’). This is very basic, there is no stemming to account for variations of words / plurals etc nor does it check for word boundaries (ie you could search for ‘oogl’ and it will match Google). Depending on your requirements, this might be sufficient though.