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 reply to Re: RegEx bump version number
by jettero
in thread RegEx bump version number
by ady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |