code: public boolean matches(String string) {		
  		Matcher matcher = pattern.matcher(string);
  		boolean result = matcher.matches();
  		return result;		
  	}
docs: Checks whether the given string matches the regular expression.
  
  @param string
  the string to be matched against the regular expression
  @return
  <code>true</code> if the string matches the regular expression,
  <code>false</code> otherwise.