CharacterClass class
Symbols that represent a group of character variants in Regular Expressions. Certain character class allows a negated form.
See more at regular-expressions.info website
Disclaimer: Available constructor list might not be completed yet
- Implemented types
- Available Extensions
Constructors
- CharacterClass.alphanumeric({bool negated = false})
-
Matches alphanumeric characters:
const
- CharacterClass.any()
-
Matches any character. Represented as dot (
.
) character.const - CharacterClass.carriageReturn()
-
Matches carriage return character (
\r
)const - CharacterClass.controlCharacter(int caretChar)
-
Matches control characters such as
SOH
,ETX
, etc. Ranging between\cA
until\cz
(available letters are A to Z, then a to z).factory - CharacterClass.digits({bool negated = false})
-
Matches numeric characters
0-9
. Represented as\d
(negated:\D
).const - CharacterClass.formFeed()
-
Matches form feed character (
\f
)const - CharacterClass.hex2(int hex)
-
Matches a character represented with
hex
ASCII value. Using\x
notation with value range of\x00
until\xFF
(Available standard ASCII characters).factory - CharacterClass.hex4(int hex)
-
Matches a character represented with
hex
Unicode value. Using\u
notation with value range of\u0000
until\uFFFF
. This allows matching of non-Latin characters.factory - CharacterClass.horizontalTab()
-
Matches tab character (
\t
)const - CharacterClass.linefeed()
-
Matches new line character (
\n
)const - CharacterClass.literal(String literal)
-
Given a
literal
character, matches the same character with attaching a backslash to escape possibility of conflicts with existing literals used by other matching operator.factory - CharacterClass.nul()
-
Matches NUL character (
\0
)const - CharacterClass.verticalTab()
-
Matches vertical tab character (
\v
)const - CharacterClass.whitespace({bool negated = false})
-
Matches whitespace characters, such as space character, new line breaks,
tabs, etc. Represented as
\s
(negated:\S
).const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited