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

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!