Maybe my perl version is different, but I can never get away with using actual spaces like that on the match side--I'd have to represent them...something like this:
$all =~ s/([ ]{2}[1-9][0-9])[ ]/$1\t\t/g;If running strictly on English and there were no possibilities or no issue with encountering numbers like '04' which had to be handled differently, the code could be a mite simpler:
$all =~ s/([ ]{2}\d\d)[ ]/$1\t\t/g;Blessings,
~Polyglot~
In reply to Re^2: simplifying substitution
by Polyglot
in thread simplifying substitution
by Konabob
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |