public void assertMatches(String errorMessage,String stringToMatch,String regex){
  assertTrue(errorMessage,stringToMatch.matches(regex));
}

public void assertMatches ( String errorMessage , String stringToMatch , String regex ) { assertTrue ( errorMessage , stringToMatch . matches ( regex ) ) ; }
check if provided string matches regex
