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

CanonEq 128

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

CaseInsensitive 2

This constant specifies that a Patternis matched case-insensitively.

Comments 4

This constant specifies that a Patternmay contain whitespace or comments.

Dotall 32

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

Literal 16

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

Multiline 8

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

UnicodeCase 64

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

UnicodeCharacterClass 256
UnixLines 1

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

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