Regular expressions come up regularly on the forum. They can be incredibly powerful and save loads of time. However there is a steep learning curve.
Most OSs and frameworks have some kind of regular expression API. You may find the following links useful in forming and using regular expressions…
- Howto use grep – unix/linux
- Regular Expression HOWTO – Written for Python but notes on pattern matching metacharacters are useful more widely