Easy PCRE regex matching. Note that pattern must match the ENTIRE target, so use .* at the start and end of the pattern, as appropriate. See http://regex101.com/ for a PCRE simulator.
Declared in <folly/testing/TestUtil.h>
#define EXPECT_PCRE_MATCH(pattern_stringpiece, target_stringpiece)
| Name | Description |
|---|---|
| pattern_stringpiece | The PCRE pattern to match against. |
| target_stringpiece | The target string that must match the pattern. |