Thanks for the context. Does rubasov's solution not answer this question? In what way does it fail to meet your criteria?
In reply to Re^3: Is there a way to allow consecutive zero-length matches without using pos()?
by hippo
in thread Is there a way to allow consecutive zero-length matches without using pos()?
by jsm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |