Hacker News new | ask | show | jobs
by majewsky 2478 days ago
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.

1 comments

I actually meant (?<tag> in order to create a named capture.