in reply to Regular Expression Test
This looks a lot like a XY Problem , please specify your intention to get the best answer.
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :) Je suis Charlie!