Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

(crazyinsomniac) Re: code within a regular expression

by crazyinsomniac (Prior)
on May 02, 2002 at 03:04 UTC ( [id://163447]=note: print w/replies, xml ) Need Help??


in reply to code within a regular expression

Death to Dot Star!
$_ = "lothlorien"; m/ (?{ $i = 0 }) (. (?{ $i++ }) )*? #### * greedy, *? not greedy lori /x; die $i, $i;

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (None)
    As of 2024-04-25 00:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found