in reply to Re: Can you do "conjunctive" (overlapping) conditions in a single regexp?
in thread Can you do "conjunctive" (overlapping) conditions in a single regexp?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can you do "conjunctive" (overlapping) conditions in a single regexp?
by tilly (Archbishop) on Dec 18, 2008 at 05:28 UTC |