August 15, 2010
JavaScript Find In Text File
Question by mobilestimulus
I have been searching for a JavaScript “Find In Page” tool to place in a HTML file so that when I enter a search term and click submit, the script will search a TEXT file of my choice and find a match on the text page for the entry submitted. Can someone give me a hand? Thanks.
Answer by Starx
Use regex pattern matching to highlight the searched text
Check this
http://www.nsftools.com/misc/SearchAndHighlight.htm