We don't bite newbies here... much | |
PerlMonks |
Re^5: Unnecessary use of capturing in regex?by gothic_mallard (Pilgrim) |
on Nov 03, 2004 at 14:56 UTC ( [id://404911]=note: print w/replies, xml ) | Need Help?? |
As previously mentioned, in this particular case there isn't any reason to use "(.)" over purely "." If you were going to require the value you replaced here afterwards for another purpose then it would make sense. Otherwise "(.)" has no advantages that I'm aware of. All code is untested unless otherwise stated.
In Section
Seekers of Perl Wisdom
|
|