Simply class

Main entry point for the Simply API

Provides static methods for creating patterns using a fluent interface.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

ahead(dynamic pattern) → Pattern
Positive lookahead - matches if pattern follows
alphaNum([int? min, int? max]) → Pattern
Matches any alphanumeric character (A-Z, a-z, 0-9)
anyOf(List patterns) → Pattern
Creates an alternation (OR) of patterns
behind(dynamic pattern) → Pattern
Positive lookbehind - matches if pattern precedes
between(dynamic start, dynamic end, [int? min, int? max]) → Pattern
Matches characters in a range (e.g., 'a' to 'z', or 0 to 9)
capture(List patterns) → Pattern
Creates a capturing group
digit([int? min, int? max]) → Pattern
Matches any digit (0-9)
dot([int? min, int? max]) → Pattern
Matches any single character (except newline in most modes)
end() → Pattern
Matches the end of the string/line
group(String name, List patterns) → Pattern
Creates a named capturing group
hexDigit([int? min, int? max]) → Pattern
Matches any hex digit (0-9, A-F, a-f)
inChars(dynamic charsOrPatterns, [List? rest]) → Pattern
Matches any character in the given string or patterns
letter([int? min, int? max]) → Pattern
Matches any letter (A-Z, a-z)
literal(String text) → Pattern
Creates a literal pattern from a string
lower([int? min, int? max]) → Pattern
Matches any lowercase letter (a-z)
may(List patterns) → Pattern
Makes patterns optional (matches 0 or 1 times)
merge(List patterns) → Pattern
Concatenates patterns into a sequence
notAhead(dynamic pattern) → Pattern
Negative lookahead - matches if pattern does not follow
notAlphaNum([int? min, int? max]) → Pattern
Matches any non-alphanumeric character
notBehind(dynamic pattern) → Pattern
Negative lookbehind - matches if pattern does not precede
notBetween(dynamic start, dynamic end, [int? min, int? max]) → Pattern
Matches characters NOT in a range
notDigit([int? min, int? max]) → Pattern
Matches any non-digit character
notHexDigit([int? min, int? max]) → Pattern
Matches any non-hex digit
notInChars(dynamic charsOrPatterns, [List? rest]) → Pattern
Matches any character NOT in the given string or patterns
notLetter([int? min, int? max]) → Pattern
Matches any non-letter character
notLower([int? min, int? max]) → Pattern
Matches any non-lowercase character
notUpper([int? min, int? max]) → Pattern
Matches any non-uppercase character
notWhitespace([int? min, int? max]) → Pattern
Matches any non-whitespace character
notWord([int? min, int? max]) → Pattern
Matches any non-word character
notWordBoundary() → Pattern
Matches a non-word boundary
start() → Pattern
Matches the start of the string/line
upper([int? min, int? max]) → Pattern
Matches any uppercase letter (A-Z)
whitespace([int? min, int? max]) → Pattern
Matches any whitespace character
word([int? min, int? max]) → Pattern
Matches any word character (alphanumeric + underscore)
wordBoundary() → Pattern
Matches a word boundary