Quantcast
Viewing all articles
Browse latest Browse all 7

Answer by poke for Documentation for ?: in regex?

It's in the php manual, and I believe any other near-complete regular expression section for any language…

The fact that plain parentheses fulfill two functions is not always helpful. There are often times when a grouping subpattern is required without a capturing requirement. If an opening parenthesis is followed by "?:", the subpattern does not do any capturing, and is not counted when computing the number of any subsequent capturing subpatterns.

Source


Viewing all articles
Browse latest Browse all 7

Trending Articles