> Figuring out the right regular expression is one of those things that
> makes me appreciate the interactive shell.  Throw some test data in a
> variable and keep modifying the regex until it matches the way you want
> it.  Then just copy and paste the working regex into your script for
> production use.

I use The Regex Coach for interactive Regex. Handy tool when your
language of choice that doesn't have an interactive shell for testing
things.

http://www.weitz.de/regex-coach

-- 
Andrew S. Zbikowski | http://andy.zibnet.us
IT Outhouse Blog Thing | http://www.itouthouse.com