in reply to Regular expression

I usually prefer to write these sorts of expressions as below, so as to make them less "silly":
{ s/(\d)(\d\d\d)(?!\d)/$1,$2/ && redo }
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Regular expression
by John M. Dlugosz (Monsignor) on Jun 08, 2001 at 00:32 UTC
     && redo

    I like that. Thanks for sharing it.