[#EXPECT_PCRE_MATCH]
= EXPECT&lowbar;PCRE&lowbar;MATCH
:mrdocs:

Easy PCRE regex matching&period; Note that pattern must match the ENTIRE target, so use &period;&ast; at the start and end of the pattern, as appropriate&period; See http&colon;&sol;&sol;regex101&period;com&sol; for a PCRE simulator&period;

== Synopsis

Declared in `&lt;folly&sol;testing&sol;TestUtil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define EXPECT&lowbar;PCRE&lowbar;MATCH(pattern&lowbar;stringpiece, target&lowbar;stringpiece)

----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pattern&lowbar;stringpiece*
| The PCRE pattern to match against&period;
| *target&lowbar;stringpiece*
| The target string that must match the pattern&period;
|===


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