in reply to
Another puzzled RegEx Problem.
This should also work, though I did like the previous solution of using reverse.
$d =~ s/(\d\d)(?=\d)/$1-/g;
[download]
Update:
Doh! Already posted above. Guess I should refresh more often!
Comment on
Re: Another puzzled RegEx Problem.
Download
Code
In Section
Seekers of Perl Wisdom