Sdílet prostřednictvím


Pattern.CaseInsensitive Field

Definition

Caution

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

Enables case-insensitive matching.

[Android.Runtime.Register("CASE_INSENSITIVE")]
[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 CaseInsensitive = 2;
[<Android.Runtime.Register("CASE_INSENSITIVE")>]
[<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 CaseInsensitive : Java.Util.Regex.RegexOptions

Field Value

Value = 2
Attributes

Remarks

Enables case-insensitive matching.

Case-insensitive matching is Unicode-aware on Android.

Case-insensitive matching can also be enabled via the embedded flag expression&nbsp;(?i).

Specifying this flag may impose a slight performance penalty.

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

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