validate_custom

Used when a custom regular expression is needed. Searches the value for a match to the regular expression given in pattern.

Parameters
mixed $value

The value being checked

#
string $pattern

The pattern to search for, as a string

#
Returns
mixed

1 if the pattern matches given value, 0 if it does not, or FALSE if an error occurred.