On 07/17/2018 08:46 PM, Lauren C. wrote:
Thanks Gil. I think i know the difference of "\w+" and "\w*" now.
lauren, did you read the perlretut document? if not, you should. it
covers quantifiers early on as they are one of the fundamental features
of regexes. a key thing to learn is the {m,n} quantifier as it can do
any number of repeats. the *, + and ? quantifiers are just shortcuts:
? is {0,1} 0 or 1
* is {0,} 0 or more
+ is {1,} 1 or more
those are used so often they should become ingrained in your brain!
uri
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/