Matching

Matches operand against pattern (a RegExp string) and returns a function that takes an optional arg and uses it as the operand or injects a argument from some other source (e.g., HTML element, query string, session storage).

When called, the returned function returns the operand if it matches/does not match the test pattern, otherwise returns an Error.