public static boolean containsBackRef(String to){
  Matcher backRefMatcher=backRefPattern.matcher(to);
  return backRefMatcher.find();
}

public static boolean containsBackRef ( String to ) { Matcher backRefMatcher = backRefPattern . matcher ( to ) ; return backRefMatcher . find ( ) ; }
look for back reference a % followed by a number
