RegexUtils class

A collection of commonly used regular expressions, provided as constants.

Each RegExp is documented with its matching behavior, valid/invalid examples, and typical use cases for validation and pattern matching.

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 Properties

alphabetic RegExp
Matches alphabetic strings (only uppercase/lowercase letters).
final
alphanumeric RegExp
Matches alphanumeric strings (letters and digits only).
final
ascii RegExp
Matches pure ASCII strings.
final
base64 RegExp
Matches base64-encoded strings.
final
creditCard RegExp
Matches credit card numbers from major providers.
final
email RegExp
Matches valid email addresses according to RFC 5322 specifications.
final
emoji RegExp
Matches one or more emoji characters.
final
float RegExp
Matches floating-point numbers, including scientific notation.
final
fullWidth RegExp
Matches full-width characters (used in Japanese, Chinese, Korean).
final
halfWidth RegExp
Matches half-width characters (standard Latin characters).
final
hexadecimal RegExp
Matches hexadecimal numbers (0-9 and A-F case-insensitive).
final
hexColor RegExp
Matches hex color codes: #abc, #abcdef, or abc, abcdef.
final
integer RegExp
Matches integer numbers including negative values.
final
ipv4 RegExp
Matches IPv4 addresses in dot-decimal notation.
final
ipv6 RegExp
Matches IPv6 addresses in standard compressed or full form.
final
isbn10 RegExp
Matches a possible ISBN-10 format.
final
isbn13 RegExp
Matches a possible ISBN-13 format.
final
multibyte RegExp
Matches any multibyte characters (non-ASCII).
final
numeric RegExp
Matches numeric integers including negative values.
final
singleEmoji RegExp
Matches exactly one emoji character.
final
surrogatePairs RegExp
Matches surrogate pairs (used in Unicode).
final
targetedEmoji RegExp
Emoji regex tuned to match emoji codepoint ranges (including Misc Technical U+2300–U+23FF) while deliberately avoiding box-drawing (U+2500–U+257F) and many other non-emoji ranges. The 'unicode: true' option is important.
final
uuid Map<String, RegExp>
Matches UUIDs by version.
final