Nice. The first snippet is exactly what I would have done, except I'd replace
(??{ (pos()-$^R < 5) ? "" : "no\\bmatch" })
with
(?(?{ pos()-$^R >= 5 })(?!))
to save from compiling patterns repeatedly.
In reply to Re^2: Can you do "conjunctive" (overlapping) conditions in a single regexp?
by ikegami
in thread Can you do "conjunctive" (overlapping) conditions in a single regexp?
by puterboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |