URGENT! Searching text file for specific text
Im trying to search my text file for specific text. I have an inputbox requesting the information from a user, and from that I want it to search my text file for the name. Example Tom Bernard T141 905-685-5655 6.0
Say if i want to search for the first name, Tom
I want to search from 0, to the firstspace
and return the whole text line that it comes along with
So if Tom is found display the line in which Tom is found
IF someone can help it would be appreciated. Im really stuck!
Re: URGENT! Searching text file for specific text
Quote:
Originally Posted by bboy_romeo
Say if i want to search for the first name, Tom
I want to search from 0, to the firstspace
and return the whole text line that it comes along with
you should use RegEx class
Re: URGENT! Searching text file for specific text
what is RegEx class?
and how do i use it?? to find what i need