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.
Unixish Shell Scripting languages
Other (post in comments)
Results (332 votes). Check out past polls.