public function match($regex)
    {
        $match = array();
        if($this->isValidRegex($regex) && preg_match($regex, $this->toString(), $match)===1)
        {
            return new ObjectArray($match);
        }
        return null;
    }
public function match($regex)
    {
        $match = array();
        if($this->isValidRegex($regex) && preg_match($regex, $this->toString(), $match)===1)
        {
            return new ObjectArray($match);
        }
        return null;
    }
public function match ( $ regex ) { $ match = array ( ) ; if ( $ this -> isValidRegex ( $ regex ) && preg_match ( $ regex , $ this -> toString ( ) , $ match ) === 1 ) { return new ObjectArray ( $ match ) ; } return null ; }
Match value against regex
@param string $regex
@return \PerrysLambda\ObjectArray
Match value against regex