public boolean matches(String expr){
  return Pattern.matches(expr,this);
}

public boolean matches ( String expr ) { return Pattern . matches ( expr , this ) ; }
determines whether a this string matches a given regular expression .
