in reply to RegEx bump version number
Well, ... would {$1}$2+1{$3} normally compile?
That /e means to evaluate the rhs like it was any other block of perl code.
I suspect you want something more like $version =~ s/(\d+)(?=\.\d+\z)/$1 + 1/e;
-Paul
|
---|
In Section
Seekers of Perl Wisdom