JCHallgren
Technical User
I am VERY new to this! And have looked thru what i have avail here...not sure what I'm looking for...
I have a text string (comments from a guestbook) that i want to see how many times certain strings occur in it..
The key one is " as more than 2 will be a sign of a spam post...is there an EASY way to scan $usrcoments for various strings and get a count of how many matches I get?
My book mentions Grep, but not clue on how to use it...
I would like to ideally match if mixed case used also...
And having all other similar words in a list to use ("poker","drug",etc) would be GREAT!
THANKS!
I have a text string (comments from a guestbook) that i want to see how many times certain strings occur in it..
The key one is " as more than 2 will be a sign of a spam post...is there an EASY way to scan $usrcoments for various strings and get a count of how many matches I get?
My book mentions Grep, but not clue on how to use it...
I would like to ideally match if mixed case used also...
And having all other similar words in a list to use ("poker","drug",etc) would be GREAT!
THANKS!