I came across a very useful tool while trying to design a regular expression. Its called RexExr and its by Grant Skinner of gskinner.com.
http://gskinner.com/RegExr/
One feature I really liked is when hovering over the matches that are hilited in the sample text, it shows a tooltip box with the full matched string and each capture group.