Regex subpatterns - capturing and not capturing

From Code Trash
Jump to: navigation, search

Q: Could someone explain the difference between anumbered and unnumbered subpatterns? (?: subpattern) vs. (subpattern)

A: One is numbered (which means you can access it later) and one is not (which means you cannot access it later).

Reference