Return the number of sub-patterns in the pattern held by this regular-expression object (pattern()). The behavior is undefined unless isPrepared() == true.
Declared in <bdlpcre_regex.h>
int
numSubpatterns() const;
number of sub-patterns in pattern()