public function matches( $regex, & $matches = null ) {
		$match = preg_match( $regex, $this->value, $matches );
		for ( $i = 0, $l = count( $matches ); $i < $l; $i ++ ) {
			$matches[ $i ] = new GString( $matches[ $i ] );
		}

		return $match == 1;
	}
public function matches( $regex, & $matches = null ) {
		$match = preg_match( $regex, $this->value, $matches );
		for ( $i = 0, $l = count( $matches ); $i < $l; $i ++ ) {
			$matches[ $i ] = new GString( $matches[ $i ] );
		}

		return $match == 1;
	}
public function matches ( $ regex , & $ matches = null ) { $ match = preg_match ( $ regex , $ this -> value , $ matches ) ; for ( $ i = 0 , $ l = count ( $ matches ) ; $ i < $ l ; $ i ++ ) { $ matches [ $ i ] = new GString ( $ matches [ $ i ] ) ; } return $ match == 1 ; }
Tells whether or not this string matches the given regular expression.

@access public

@param string $regex The regular expression to which this string is to be matched
@param array $matches This will be set to the results of the search

@return boolean true if the string matches the given regular expression.
Tells whether or not this string matches the given regular expression .