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.

Synopsis

Declared in <folly/testing/TestUtil.h>

#define EXPECT_PCRE_MATCH(pattern_stringpiece, target_stringpiece)

Parameters

Name

Description

pattern_stringpiece

The PCRE pattern to match against.

target_stringpiece

The target string that must match the pattern.

Created with MrDocs