SproutCMS

This is the code documentation for the SproutCMS project

function regex()

Checks that a value matches a regular expression

Usage

void Validity::regex ( string $val , string $pattern );

Arguments

  1. string $val
    value
  2. string $pattern
    Regex pattern for preg_match. Consider starting with /^ and ending with $/

Exceptions thrown

Return value

  • void