FzPattern class
Strict Pattern
Symbol ^ and $ in pattern is to make sure all the string value following the pattern
Regex will return false
if any of the characters do not follow the pattern.
Example: Email Pattern
- testexample.com =>
false
- test@example.com =>
true
- test@examplecom =>
false
Constructors
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
- canadaPostalCodeValidator → RegExp
-
Matches Canada Postal Code Validation
final
- internationalPhoneNumValidator → RegExp
-
Matches International Phone Numbers
final
- ninValidator → RegExp
-
Matches national insurance numbers in the UK
final
- postCodeValidator → RegExp
-
Matches UK post codes
final
- ssnValidator → RegExp
-
Matches SSN Number
final
- uszipcodeValidator → RegExp
-
Matches US Zip Code Validation
final
Constants
- alphabetOnly → const Pattern
- Alphabet Only regex (No Whitespace & Symbols)
- apk → const Pattern
- APK regex
- audio → const Pattern
- Audio regex
- basicDateTime → const Pattern
- DateTime regex (UTC) Unformatted date time (UTC and Iso8601) Example: 2020-04-27 08:14:39.977, 2020-04-27T08:14:39.977, 2020-04-27 01:14:39.977Z
- binary → const Pattern
- Binary regex Consist only 0 & 1
- creditcard → const Pattern
- Credit/Debit Card
- currency → const Pattern
- Currency regex
- doc → const Pattern
- Document regex
- email → const Pattern
- Email regex
- excel → const Pattern
- Excel regex
- github → const Pattern
- Github repository regex
- hexadecimal → const Pattern
- Hexadecimal regex
- html → const Pattern
- HTML regex
- htmlTags → const Pattern
- HTML Tags multiLine = true
- image → const Pattern
- Image regex
- ipv4 → const Pattern
- IPv4 regex
- ipv6 → const Pattern
- IPv6 regex
- isbn → const Pattern
- ISBN 10 & 13 regex
- md5 → const Pattern
- MD5 regex
- name → const Pattern
- Name regex
- numericOnly → const Pattern
- Numeric Only regex (No Whitespace & Symbols)
- onlynumber → const Pattern
- Only Numbers
- passport → const Pattern
- Passport No. regex
- passwordEasy → const Pattern
- Password (Easy) Regex Allowing all character except 'whitespace' Minimum character: 8
- passwordEasyAllowedWhitespace → const Pattern
- Password (Easy) Regex Allowing all character Minimum character: 8
- passwordHard → const Pattern
- Password (Hard) Regex Allowing all character except 'whitespace' Must contains at least: 1 uppercase letter, 1 lowecase letter, 1 number, & 1 special character (symbol) Minimum character: 8
- passwordHardAllowedWhitespace → const Pattern
- Password (Hard) Regex Allowing all character Must contains at least: 1 uppercase letter, 1 lowecase letter, 1 number, & 1 special character (symbol) Minimum character: 8
- passwordNormal1 → const Pattern
- Password (Normal) Regex Allowing all character except 'whitespace' Must contains at least: 1 letter & 1 number Minimum character: 8
- passwordNormal1AllowedWhitespace → const Pattern
- Password (Normal) Regex Allowing all character Must contains at least: 1 letter & 1 number Minimum character: 8
- passwordNormal2 → const Pattern
- Password (Normal) Regex Allowing LETTER and NUMBER only Must contains at least: 1 letter & 1 number Minimum character: 8
- passwordNormal2AllowedWhitespace → const Pattern
- Password (Normal) Regex Allowing LETTER and NUMBER only Must contains: 1 letter & 1 number Minimum character: 8
- passwordNormal3 → const Pattern
- Password (Normal) Regex Allowing all character except 'whitespace' Must contains at least: 1 uppercase letter, 1 lowecase letter & 1 number Minimum character: 8
- passwordNormal3AllowedWhitespace → const Pattern
- Password (Normal) Regex Allowing all character Must contains at least: 1 uppercase letter, 1 lowecase letter & 1 number Minimum character: 8
- pdf → const Pattern
- PDF regex
- phone → const Pattern
- Phone Number regex Must started by either, "0", "+", "+XX <X between 2 to 4 digit>", "(+XX <X between 2 to 3 digit>)" Can add whitespace separating digit with "+" or "(+XX)" Example: 05555555555, +555 5555555555, (+123) 5555555555, (555) 5555555555, +5555 5555555555
- postalCode → const Pattern
- Postal Code
- ppt → const Pattern
- PPT regex
- sha1 → const Pattern
- SHA1 regex
- sha256 → const Pattern
- SHA256 regex
- ssn → const Pattern
- SSN (Social Security Number) regex
- txt → const Pattern
- Txt regex
- url → const Pattern
- URL regex
- username → const Pattern
- Username regex
- vector → const Pattern
- Image vector regex
- video → const Pattern
- Video regex