in reply to Re^4: Unnecessary use of capturing in regex?
in thread Unnecessary use of capturing in regex?

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.

--- Jay

All code is untested unless otherwise stated.
All opinions expressed are my own and are intended as guidance, not gospel; please treat what I say as such and as Abigail said Think for yourself.
If in doubt ask.