Udostępnij za pośrednictwem


RegexOptions Enum

Definition

Enumerates values returned by several types and taken as a parameter of the F:Java.Util.Regex.Pattern.Compile member.

public enum RegexOptions
type RegexOptions = 
Inheritance
RegexOptions

Fields

Name Value Description
UnixLines 1

This constant specifies that a pattern matches Unix line endings ('\n') only against the '.', '^', and '$' meta characters.

CaseInsensitive 2

This constant specifies that a Patternis matched case-insensitively.

Comments 4

This constant specifies that a Patternmay contain whitespace or comments.

Multiline 8

This constant specifies that the meta characters '^' and '$' match only the beginning and end of an input line, respectively.

Literal 16

This constant specifies that the whole Patternis to be taken literally, that is, all meta characters lose their meanings.

Dotall 32

This constant specifies that the '.' meta character matches arbitrary characters, including line endings, which is normally not the case. Corresponds to (?s).

UnicodeCase 64

This constant specifies that a Patternthat uses case-insensitive matching will use Unicode case folding.

CanonEq 128

This constant specifies that a character in a Patternand a character in the input string only match if they are canonically equivalent.

UnicodeCharacterClass 256

Remarks

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