Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Oddness with regex quantifiers

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


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

Good point. I even suggested 0 earlier in this thread, but now I think 1 would be a better choice. I guess I'm spoiled by how well Perl deals with default values; I though it would DWIM in this case.

And I was wrong. I'm now chastened, older and wider wiser; and I'm using {1,5} in my regex.

Alex / talexb / Toronto

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


Comment on Re^2: Oddness with regex quantifiers
Download Code
Re^3: Oddness with regex quantifiers
by t.b.b. (Initiate) on Nov 23, 2010 at 22:44 UTC
    Thank you for giving us the benefits of your experience.

    -t.b.b.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-09-18 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (124 votes), past polls