and that works.while (s/(\d)(\d\d\d)(?!\d)/$1,$2/){}
So this line is similar to the form 'do x while (this is true)' where the 'do x' in this case is just '1', which does nothing. I think I see, now. Thanks!
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar";
$nysus = $PM . $MCF;
In reply to Re: Re (tilly) 1: Regular expression
by nysus
in thread Regular expression
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |