If you use to spend ages building and testing regular expressions, you might be interested in the online expression editor Rubular. Rubular is a handy way to test ruby-based regular expressions as you write them.
Since the regular expression flavor used in Ruby is “Perl Style”, you can use this tool to test regular expressions written for PHP (preg function), Python, Javascript etc. Enjoy!