in reply to Re: Why would one want in a regex a class with only a single entry?
in thread Why would one want in a regex a class with only a single entry?

Thanks, grinder. I believe, that this is very similar to tsf's use for adding in white space when using the /x modifier.

I would note that although, as you noted it may be:

...a false economy...

it does seem to improve readability since, to me, /a[+]b/ seems more readable than /a\+b/.

ack Albuquerque, NM
  • Comment on Re^2: Why would one want in a regex a class with only a single entry?