src/Regex.php
public function match($pattern, $subject)
    {
        if (! $this->validate($pattern)) {
            return false;
        }
        
        return $this->getInstance()->match($pattern, $subject);
    }
public function match($pattern, $subject)
    {
        if (! $this->validate($pattern)) {
            return false;
        }
        
        return $this->getInstance()->match($pattern, $subject);
    }
public function match ( $ pattern , $ subject ) { if ( ! $ this -> validate ( $ pattern ) ) { return false ; } return $ this -> getInstance ( ) -> match ( $ pattern , $ subject ) ; }
Matches a regular expression

@param string $pattern
The regular expression to execute
@param string $subject
The string to search within
@return boolean
Matches a regular expression