Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
"be consistent"
 
PerlMonks  

Re: Question on REGEX

by japhy (Canon)
on May 14, 2001 at 03:00 UTC ( #80119=note: print w/ replies, xml ) Need Help??


in reply to Question on REGEX

Perhaps you were thinking of (a+)? vs. a*, which are technically the same. But a+? means "one or more of 'a', but match it as few times as possible", whereas a* means "zero or more of 'a', but match it as many times as possible".

There will be an exercise in LPRE which is to convert quantifiers back and forth.

japhy -- Perl and Regex Hacker


Comment on Re: Question on REGEX

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (19)
As of 2013-05-22 07:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (454 votes), past polls