in reply to Test regex compile

What I sometimes do when working with a regex is to isolate it out into a test script that will just test the working of the regex so I will know quite quickly if it is doing what I expect.