語言

Pattern.Comments 欄位

定義

警告

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

允許在圖案中留白和註解。

[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

欄位值

Value = 4
屬性

備註

允許在圖案中留白和註解。

在此模式下,空白會被忽略,嵌入的註解會被忽略, # 直到行尾才會被忽略。

註解模式也可透過嵌入的旗標表達式(?x)啟用。

Java 文件 java.util.regex.Pattern.COMMENTS

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於