regexed_validator 1.0.1

  • Example
  • Installing
  • Versions
  • 90

A library for Dart/Flutter developers. Regexed Validator at For validating:

  • phone
  • name
  • postalCode
  • email
  • url
  • currency
  • ip
  • date
  • time
  • htmlTags
  • password
  • creditCard

Usage #

Usage is pretty simple just pass a phone, date, email... to its validation method, see the example below

import 'package:regexed_validator/regexed_validator.dart';

main() {'');
      '<span id="foo" class="bar">Some text</span>\n'
      '<hr />');

1.0.0 #

  • Initial version, created with basic yet functional phone, name, postalCode, email, url, currency, ip, date, time, htmlTags, password, and creditCard validation.


import 'package:regexed_validator/regexed_validator.dart';

main() {
  print('+(123) - 456-78-90')); // true
  print('John Quincy Adams')); // true
  print(validator.postalCode('10010-6543')); // ture
  print('')); // true
  print(validator.url('')); // true
  print(validator.currency('£498.10')); // true
  print(validator.ip('')); // true
  print('2000-12-20')); // true
  print(validator.time('14:34 GMT -5')); // true
      '<span id="foo" class="bar">Some text</span>\n'
      '<hr />')); // true
  print(validator.password('sword#42Fish')); // true
  print(validator.creditCard('4000-1234-1234-1234')); // true

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  regexed_validator: ^1.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:regexed_validator/regexed_validator.dart';
Version Uploaded Documentation Archive
1.0.2 Nov 23, 2018 Go to the documentation of regexed_validator 1.0.2 Download regexed_validator 1.0.2 archive
1.0.1 Nov 21, 2018 Go to the documentation of regexed_validator 1.0.1 Download regexed_validator 1.0.1 archive
1.0.0 Nov 21, 2018 Go to the documentation of regexed_validator 1.0.0 Download regexed_validator 1.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.1
  • pana: 0.12.16


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:regexed_validator/regexed_validator.dart.

Health issues and suggestions

Document public APIs. (-1 points)

2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0