in reply to Is there a way to allow consecutive zero-length matches without using pos()?

That's a complicated question and you should really provide a SSCCE to handle it.

FWIW: my guts say you might use look behind assertions. ...

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: Is there a way to allow consecutive zero-length matches without using pos()?