Syntactic Confectionery Delight | |
PerlMonks |
Re: Difference between these regexes (elaboration)by tye (Sage) |
on Jul 29, 2016 at 14:32 UTC ( [id://1168820]=note: print w/replies, xml ) | Need Help?? |
2 and 3 are equivalent (and I'll bet that 2 is less efficient). 1 is also equivalent as-is. However, if you were to use these constructs as part of a larger regex, then 1 would not always be equivalent.
- tye
In Section
Seekers of Perl Wisdom
|
|