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