in reply to mysteries of regex substring matching
It depends what your goal is.
If it's simply using a quantifier {4} the answer is no, because only the last match will be kept for the unique first group , that's why you get 01D9 at the end. Not a mystery.
But there are numerous workarounds I can think of.
Like
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: mysteries of regex substring matching
by LanX (Saint) on Jan 15, 2021 at 22:45 UTC | |
|
Re^2: mysteries of regex substring matching
by LanX (Saint) on Jan 15, 2021 at 22:53 UTC |