Pattern.Literal Field

Definition

Caution

This constant will be removed in the future version. Use Java.Util.Regex.RegexOptions enum directly instead of this field.

Enables literal parsing of the pattern.

[Android.Runtime.Register("LITERAL")]
[System.Obsolete("This constant will be removed in the future version. Use Java.Util.Regex.RegexOptions enum directly instead of this field.", true)]
public const Java.Util.Regex.RegexOptions Literal = 16;
[<Android.Runtime.Register("LITERAL")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Util.Regex.RegexOptions enum directly instead of this field.", true)>]
val mutable Literal : Java.Util.Regex.RegexOptions

Field Value

Value = 16
Attributes

Remarks

Enables literal parsing of the pattern.

When this flag is specified then the input string that specifies the pattern is treated as a sequence of literal characters. Metacharacters or escape sequences in the input sequence will be given no special meaning.

The flags CASE_INSENSITIVE and UNICODE_CASE retain their impact on matching when used in conjunction with this flag. The other flags become superfluous.

There is no embedded flag character for enabling literal parsing.

Added in 1.5.

Java documentation for java.util.regex.Pattern.LITERAL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to