Solar_Filter_ValidatePregMatch::validatePregMatch()

public bool Solar_Filter_ValidatePregMatch::validatePregMatch ( mixed $value , string $expr )

Validates the value against a regular expression.

Parameters

  • (mixed) $value: The value to validate.

  • (string) $expr: The regular expression to validate against.

Returns

  • (bool) True if the value matches the expression, false if not.

Description

Validates the value against a regular expression.

Uses » preg_match() to compare the value against the given regular epxression.



Local