public static String toRegex(String glob,String separator){
  checkNotNull(separator,"separator must be non-null");
  checkArgument(separator.length() == 1,"separator must be a single character: %s",separator);
  return toRegex(glob,separator.charAt(0));
}

public static String toRegex ( String glob , String separator ) { checkNotNull ( separator , "separator must be non-null" ) ; checkArgument ( separator . length ( ) == 1 , "separator must be a single character: %s" , separator ) ; return toRegex ( glob , separator . charAt ( 0 ) ) ; }
converts the given glob pattern into a regular expression .
