[#BloombergLP-bdlpcre-RegEx-setDepthLimit]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlpcre.adoc[bdlpcre]::xref:BloombergLP/bdlpcre/RegEx.adoc[RegEx]::setDepthLimit
:relfileprefix: ../../../
:mrdocs:

Set the evaluation recursion depth limit for this regular&hyphen;expression object to the specified `depthLimit`&period; Return the previous depth limit&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setDepthLimit(int depthLimit);
----


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