Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Regular expression

by alfie (Pilgrim)
on Jun 07, 2001 at 20:36 UTC ( #86638=note: print w/replies, xml ) Need Help??


in reply to Regular expression

The 1 at the start of the line does nothing - see it as a nop (no operation). Well, to be honest, it does something: It evaluates to 1, if you would use it. It could also be written as
while (s(\d)(\d\d\d)(?!\d)/$1,$2/) {};
If you count the characters this line is a little longer, but not really more readable.
--
use signature; signature(" So long\nAlfie");

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://86638]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2022-01-18 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (52 votes). Check out past polls.

    Notices?