Udostępnij za pośrednictwem


Pattern.Comments Field

Definition

Caution

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

Permits whitespace and comments in pattern.

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

Field Value

Value = 4
Attributes

Remarks

Permits whitespace and comments in pattern.

In this mode, whitespace is ignored, and embedded comments starting with # are ignored until the end of a line.

Comments mode can also be enabled via the embedded flag expression&nbsp;(?x).

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

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