protected boolean match(String expected,String actual){
  return Pattern.matches(expected,actual);
}

protected boolean match ( String expected , String actual ) { return Pattern . matches ( expected , actual ) ; }
a convenience method which returns true if the actual string matches the expected regular expression .
