subexpression-numbering-note.md
Note
The subexpressions are numbered left to right, based on the appearance of opening parenthesis, so nested regular expressions . For example, in the regular expression\s*(\w+\s+(\w+))
, subexpression 1 is the one that captures everything but any leading whitespaces.