[#BloombergLP-bdlpcre-RegEx-numSubpatterns] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlpcre.adoc[bdlpcre]::xref:BloombergLP/bdlpcre/RegEx.adoc[RegEx]::numSubpatterns :relfileprefix: ../../../ :mrdocs: Return the number of sub‐patterns in the pattern held by this regular‐expression object (`pattern()`). The behavior is undefined unless `isPrepared() == true`. == Synopsis Declared in `<bdlpcre_regex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int numSubpatterns() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#