in reply to Regular Expression GUI?

Don't forget the versatile perl -de 0. Throw a test string in $_ and then just throw succesive iterations of x /foo/ at it until you've got your regex. See perldoc perldebug for more info.