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.
Fruit and Vegetables
Me, that's why I'm so cool
Logic (separated into Horror and Brilliance)
Results (258 votes). Check out past polls.