__construct() __construct(string $regexp) Constructor. Parameters string $regexp A regular expression.
__toString() __toString() : string Returns the string representation. Returns string — String representation of this regular expression.
matches() matches(string $string) : boolean Returns whether this a string matches this regular expression. Parameters string $string A string to match against. Returns boolean — True if the string matches.