Pattern.Dotall 字段

定义

注意

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

启用 dotall 模式。

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

字段值

Value = 32
属性

注解

启用 dotall 模式。

在 dotall 模式下,表达式 . 匹配任何字符,包括行终止符。 默认情况下,此表达式与行终止符不匹配。

也可通过嵌入式标志表达式  (?s) 启用 Dotall 模式。 s(这是“单行”模式的助记词,这是 Perl 中所谓的。

Java文档java.util.regex.Pattern.DOTALL

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于