Maybe you want the /e switch (see perlre)?
%Hidlabels = {3333=>1, 4444=>2, 2222=>3}; $formula =~ s/f(\d+)/$Hidlabels{$1}/ge;
In reply to Re: help required for regexp
by Corion
in thread help required for regexp
by upaksh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |