That might not be the best solution, since my design is kind of flawed, but it is most certainly the easiest. Thank you. I learned yet another thing about regex today! Of course I will probably forget it by the next time I need it...
Sorry about not including the hash - I cut this from a much larger program.
Re^2: Help with regex - find captured pattern twice