in reply to
regex capture case
Can't you just modify "aAbc" into "Aabc" afterwards? You could use substr to cut out two first chars and then concatenate "Aa" with result of substr.
Comment on
Re: regex capture case
Replies are listed 'Best First'.
Re^2: regex capture case
by
rmflow
(Beadle)
on Jun 23, 2009 at 08:53 UTC
The nature of regex is not known, this is just an example. To do what you say I will need to perform a full parse of regex and it will not be "simple solution". I mean, I will need to distinguish regexes like "Dd" and "D\d" etc...
[reply]
In Section
Seekers of Perl Wisdom