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