in reply to Debugging regular expressions

It also helps to "translate" the specification of how the to be parsed data looks like into a language that easily maps to regular expressions. As in:

3 or 5 digits, a dash, 4 to 6 uppercase characters, a slash or whitespace, 2 digits and the letter K

Once you have nailed down the specification, the implementation is often quite easy.

-- Abigail