question: 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 ) ) ; }
target:  Converts the given glob pattern into a regular expression.