classes/phing/util/regexp/PregEngine.php
public function match($pattern, $source, &$matches)
    {
        return preg_match($this->preparePattern($pattern), $source, $matches) > 0;
    }
public function match($pattern, $source, &$matches)
    {
        return preg_match($this->preparePattern($pattern), $source, $matches) > 0;
    }
public function match ( $ pattern , $ source , & $ matches ) { return preg_match ( $ this -> preparePattern ( $ pattern ) , $ source , $ matches ) > 0 ; }
Matches pattern against source string and sets the matches array.

@param  string $pattern The regex pattern to match.
@param  string $source The source string.
@param  array $matches The array in which to store matches.
@return boolean Success of matching operation.
Matches pattern against source string and sets the matches array .