regexMatch

Returns true if the string matches the supplied pattern, false otherwise.

Description

bool regexMatch(string $pattern, string $options)

Parameters

  • string $pattern
    Regex pattern to match against.

  • string $options
    Matching conditions to be used.

Return Value

bool