Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Oddness with regex quantifiers

by talexb (Canon)
on Nov 23, 2010 at 22:14 UTC ( #873303=note: print w/replies, xml ) Need Help??


in reply to Re^3: Oddness with regex quantifiers
in thread Oddness with regex quantifiers

Sorry, everyone, I guess I should have said 1, not 0.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Replies are listed 'Best First'.
Re^5: Oddness with regex quantifiers
by ikegami (Pope) on Nov 23, 2010 at 22:21 UTC
    No difference.
    $ perl -E'say "aaa" =~ /a{2,}/' 1 $ perl -E'say "aaa" =~ /a{2,1}/' Can't do {n,m} with n > m in regex; marked by <-- HERE in m/a{2,1} <-- + HERE / at -e line 1.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2016-09-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (554 votes). Check out past polls.