Regex: ?: notation (Question mark and colon notation) [duplicate]

(?: starts a non-capturing group. It’s no different to ( unless you’re retrieving groups from the regex after use. See What is a non-capturing group? What does a question mark followed by a colon (?:) mean?.

Leave a Comment