[#BloombergLP-bdlpcre-RegEx-prepare-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlpcre.adoc[bdlpcre]::xref:BloombergLP/bdlpcre/RegEx.adoc[RegEx]::prepare
:relfileprefix: ../../../
:mrdocs:

Prepare this regular&hyphen;expression object with the specified `pattern`, discarding compile&hyphen;error text (pass a null `errorMessage`)&period;

== Synopsis

Declared in `&lt;bdlpcre&lowbar;regex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
prepare(
    xref:bsl/nullptr_t-08.adoc[bsl::nullptr&lowbar;t] errorMessage,
    size&lowbar;t* errorOffset,
    char const* pattern,
    int flags = 0,
    size&lowbar;t jitStackSize = 0);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
