(PHP 4, PHP 5, PHP 7)
Perform a regular expression match
int preg_match ( string $pattern, string $subject [, array &$matches [, int $flags = 0 [, int $offset = 0 ]]] )
Searches subject for a match to the regular expression given in pattern.
Parameters:
pattern
The pattern to search for, as a string.
subject
The input string.