I'll be frank: what is the point? The use, and usefulness, of a set of
capturing parentheses in a regular expression is clear. However, isn't an
expression such as "/(?:x)/", exactly the same as "/x/", or is the former
a better way of including a literal substring within an expression?
I know there must be a valid reason for including them, but I'm not seeing
it at the moment.
Mike
--
Michael Winter
M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)
capturing parentheses in a regular expression is clear. However, isn't an
expression such as "/(?:x)/", exactly the same as "/x/", or is the former
a better way of including a literal substring within an expression?
I know there must be a valid reason for including them, but I'm not seeing
it at the moment.
Mike
--
Michael Winter
M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)
Comment