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

Same as the preceding overload, writing into a `std&colon;&colon;pmr&colon;&colon;string`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
replace(
    std::pmr::string* result,
    int* errorOffset,
    std::string&lowbar;view const& subject,
    std::string&lowbar;view const& replacement,
    size&lowbar;t options = 0) const;
----


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