in reply to You don't always have to use regexes
Code Smarter: Compulsory linke to Japhy's node making the same sugestion, and more.
Edited by davido: fixed broken link.