Re:Is there a regular expression to detect a valid regular e...
by majewsky on Sunday September 08, 2019 @03:18PM
(#20912723)
You want (?:, not (?
Without the colon, the parser appears to be interpreting (? as "one or more instances of (", but ( is no a full expression by itself and therefore cannot be modified with a quantifier.
Without the colon, the parser appears to be interpreting (? as "one or more instances of (", but ( is no a full expression by itself and therefore cannot be modified with a quantifier.