There are various regexp tools out there. I recommend you to get The RegEx Coach by Dr. Edmund Weitz. With this tool you get highlighted text matching while you interactively write your regular expressions. Get it now and install it.
Mac user can go for RegexPlor
It is not as powerful as The RegExCoach but runs on PPC Macs.