Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
IF sequences are always consecutive and never interrupted, one could try to grab the first and the last of each sequence and replace each sequence in a loop.
BUT you need to be sure that neither
Still I wouldn't choose to embed Perl into a regex to solve that. That's only complicating things, because the complex logic would be only obfuscated
Cheers Rolf In reply to Re: Regexp substitution on variable-length ranges with embedded code?
by LanX
|
|