in reply to Re: RegExp: pos management in global substitution
in thread RegExp: pos management in global substitution
Interesting, but it depends of new line. In my example each tag separated by new line, but it is special case.
And it seems your regexp could be more efficient:
And it seems your regexp could be more efficient:
s( (?: (?: \G (?<! \A) | \A {name_a) $not_sp_param*+ \K) \s+ \w+ = \" [^^\"]* \" ) ()xmsg;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: RegExp: pos management in global substitution
by AnomalousMonk (Archbishop) on Sep 03, 2011 at 23:10 UTC | |
by OlegG (Monk) on Sep 04, 2011 at 04:50 UTC | |
by AnomalousMonk (Archbishop) on Sep 04, 2011 at 13:21 UTC | |
by AnomalousMonk (Archbishop) on Sep 04, 2011 at 18:41 UTC |
In Section
Seekers of Perl Wisdom