public static String escape(String raw){
  checkNotNull(raw,"raw");
  String escaped=raw;
  escaped=escaped.replaceAll(UNESCAPED_WILDCARD_REGEX,WILDCARD_ESCAPE);
  escaped=escapeSeparators(escaped);
  return escaped;
}

public static String escape ( String raw ) { checkNotNull ( raw , "raw" ) ; String escaped = raw ; escaped = escaped . replaceAll ( UNESCAPED_WILDCARD_REGEX , WILDCARD_ESCAPE ) ; escaped = escapeSeparators ( escaped ) ; return escaped ; }
returns a string escaped so it will be interpreted literally by the matcher . specifically it converts all ' | ' and ' * ' characters to " \ | " and " \ * " respectively .
