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

Same as the preceding overload, loading a `string&lowbar;view` match result&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
match(
    std::string&lowbar;view* result,
    char const* subject,
    size&lowbar;t subjectLength,
    size&lowbar;t subjectOffset = 0) const;
----

== Return Value

`k&lowbar;STATUS&lowbar;SUCCESS` on success, `k&lowbar;STATUS&lowbar;NO&lowbar;MATCH` if no match, or another status on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| receives the matched substring
| *subject*
| subject string to match (need not be null&hyphen;terminated)
| *subjectLength*
| length of `subject` in bytes
| *subjectOffset*
| offset in `subject` at which matching begins
|===


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