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

Return the flags from the most recent successful `prepare` call&period;

== Synopsis

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

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

== Description

Return the flags that were supplied to the most recent successful call to the `prepare` method of this regular&hyphen;expression object&period; The behavior is undefined unless `isPrepared() &equals;&equals; true`&period; Note that the returned value will be the bit&hyphen;wise inclusive&hyphen;or of 0 or more of the following values&colon; &grave; k&lowbar;FLAG&lowbar;CASELESS k&lowbar;FLAG&lowbar;DOTMATCHESALL k&lowbar;FLAG&lowbar;MULTILINE k&lowbar;FLAG&lowbar;UTF8 k&lowbar;FLAG&lowbar;JIT k&lowbar;FLAG&lowbar;DUPNAMES &grave; Also note that `k&lowbar;FLAG&lowbar;JIT` is ignored, but still returned by this method, if `isJitAvailable()` is `false`&period;

== Return Value

flags from the most recent successful `prepare` call


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