Thanks Fred and James Edward Gray II
Those are Regular Expressions. You can start here[1]
[1]http://macromates.com/textmate/manual/regular_expressions#regular_express ions
There's a chapter on them in the TextMate book:
http://www.pragmaticprogrammer.com/titles/textmate/index.html
Apologies for all the duplicate postings James