Example usage for com.google.gwt.regexp.shared RegExp quote

List of usage examples for com.google.gwt.regexp.shared RegExp quote

Introduction

In this page you can find the example usage for com.google.gwt.regexp.shared RegExp quote.

Prototype

public static String quote(String input) 

Source Link

Document

Returns a literal pattern String for the specified String.

Usage

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
}