Yes, excellent. Perhaps the enclosing double-quotes (also) helps to disambiguate the expression. After the first eval, the interpreter sees this:
$var =~ s/(\d*?)-(.*?)-(.*)/$1$2$3/ee;
The substituting expression is problematic w/o either being interpolated via "$1$2$3" or concatenated using $1.$2.$3.
In reply to Re^3: "ee" in Regular Expression: version issue?
by Kenosis
in thread "ee" in Regular Expression: version issue?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |