When I need to make or debug/test a regex, I tend to use this website:
It also has documentation/description of the various regex elements, and supports several different syntaxes. I used regexes a lot in my SC live coding tools, and found it helpful.
Glen.