Regex Toolkit

Dart CI

A collection of commonly used regular expressions

Usage

A simple usage example:

import 'package:regex_toolkit/regex_toolkit.dart';

void main() {
  var email = 'john@doe.com';

  if (RegexToolkit.emailId.hasMatch(email)) {
    print('Valid Email');
  } else {
    print('Invalid Email');
  }
}

Available Regex

  • Simple

    • Alphanumeric (+ with spaces)
    • Alphabet (+ case sensitive)
    • Digits
    • Decimals (+ signed)
  • User

    • Username
    • Password
    • Email
  • Internet

    • URL
    • IPv4
    • IPv6
  • Date

  • Identity

    • SSN
    • International Phone Number
    • Passport
    • Credit Card

Authors

This project is licensed under the MIT License - see the LICENSE file for details

Libraries

regex_toolkit
A collection of commonly used regular expressions.