[#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‐expression object to the specified `depthLimit`. Return the previous depth limit. == Synopsis Declared in `<bdlpcre_regex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setDepthLimit(int depthLimit); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#