Java.Util.Regex.Pattern.Quote Method
Quotes the given string using "\Q" and "\E", so that all meta-characters lose their special meaning.

Syntax

[Android.Runtime.Register("quote", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string Quote (string s)

Parameters

string
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Quotes the given string using "\Q" and "\E", so that all meta-characters lose their special meaning. This method correctly escapes embedded instances of "\Q" or "\E". If the entire result is to be passed verbatim to Pattern.Compile(string), it's usually clearer to use the Pattern.Literal flag instead.

[Android Documentation]

Requirements

Namespace: Java.Util.Regex
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1