List of usage examples for com.google.gwt.regexp.shared RegExp quote
public static String quote(String input)
String for the specified String. From source file:java.util.regex.Matcher.java
License:Apache License
public static String quoteReplacement(String input) { return RegExp.quote(input); }
From source file:org.jboss.hal.ballroom.autocomplete.ItemRenderer.java
License:Apache License
@JsOverlay static RegExp highlight(String query) { return RegExp.compile("(" + RegExp.quote(query) + ")", "gi"); //NON-NLS }