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

Match the specified `subject` having the specified `subjectLength` against `pattern()`&period; Begin matching at the optionally specified `subjectOffset` in `subject`&period; If `subjectOffset` is not specified, matching begins at the start of `subject`&period; `subject` may contain embedded null characters&period; Return `k&lowbar;STATUS&lowbar;SUCCESS` on success, `k&lowbar;STATUS&lowbar;NO&lowbar;MATCH` if a match is not found, and another value if an error occurs&period; If the returned status is not `k&lowbar;STATUS&lowbar;SUCCESS` or `k&lowbar;STATUS&lowbar;NO&lowbar;MATCH` it may match one of specific `k&lowbar;STATUS&lowbar;&ast;` error return constants defined above (but is not guaranteed to)&period; `result` is unchanged if a value other than `k&lowbar;STATUS&lowbar;SUCCESS` is returned&period; The behavior is undefined unless `true &equals;&equals; isPrepared()`, `subject &verbar;&verbar; 0 &equals;&equals; subjectLength`, `subjectOffset &lt;&equals; subjectLength`, and `subject` is valid UTF&hyphen;8 if `pattern()` was prepared with `k&lowbar;FLAG&lowbar;UTF8`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
matchRaw(
    xref:bsl/pair-0b.adoc[bsl::pair&lt;size&lowbar;t, size&lowbar;t&gt;]* result,
    char const* subject,
    size&lowbar;t subjectLength,
    size&lowbar;t subjectOffset = 0) const;
----


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