public function matches($name, $pattern, &$matches = []) {
		return preg_match($pattern, $this->get($name), $matches);
	}
public function matches($name, $pattern, &$matches = []) {
		return preg_match($pattern, $this->get($name), $matches);
	}
public function matches ( $ name , $ pattern , & $ matches = [ ] ) { return preg_match ( $ pattern , $ this -> get ( $ name ) , $ matches ) ; }
Tests if the value of an attribute matches the given pattern.

@param string $name Attribute name.
@param string $pattern Pattern.
@param array $matches Search results.
@return boolean If the attribute value matches the pattern.
Tests if the value of an attribute matches the given pattern .