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

Re: Re: Reverse Regexing

by smalhotra (Scribe)
on Aug 09, 2002 at 16:50 UTC ( [id://188969]=note: print w/replies, xml ) Need Help??


in reply to Re: Reverse Regexing
in thread Reverse Regexing

Just thought I'd explain the previous regexes a little. The ^ represents the start of the string with $ represents the end of the string. The .* (greedy) part will match as many characters it can before 'ed'. On the other hand a .*? is non-greedy and will match as few as possible characters, in this case zero, before 'ed'. Also be sure to look at perldoc perlre. Hope this helps a little more.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-23 21:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found