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

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象