Expect.toMatch

Succeeds if received matches the regular expression pattern. Throws a FailingExpectationError otherwise.

struct Expect(TReceived)
void
toMatch
(
TExpected
)
(
TExpected pattern
,
string flags = ""
)
if (
isSomeString!TReceived &&
isSomeString!TExpected
)

Meta