looking at some regex or as its proper name Regular Expressions will really help scripting in many languages as its pretty much a language on its own and is used in many different areas including php, .net, java, msl, etc.
http://gnosis.cx/publish/programming/regular_expressions.html