in reply to Obtain information from a string
You will find all of the information you need here: regular expressions. Also, the m operator manpage might be useful to you.
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (488 votes). Check out past polls.