in reply to help required for regexp
Maybe you want the /e switch (see perlre)?
%Hidlabels = {3333=>1, 4444=>2, 2222=>3}; $formula =~ s/f(\d+)/$Hidlabels{$1}/ge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help required for regexp
by Eliya (Vicar) on Dec 07, 2011 at 09:55 UTC | |
by Corion (Patriarch) on Dec 07, 2011 at 10:13 UTC |