validator_regex 1.1.0 copy "validator_regex: ^1.1.0" to clipboard
validator_regex: ^1.1.0 copied to clipboard

A Dart package for email, url and ip address validation useing regex.

example/lib/main.dart

// Import the validator package
import 'package:validator_regex/validator_regex.dart';

void main() {
  // Test email validation
  var email = "test@example.com";
  var isValidEmail = Validator.email(email);
  print('Is "$email" a valid email? $isValidEmail');

  // Test URL validation
  var url = "https://www.example.com";
  var isValidUrl = Validator.url(url);
  print('Is "$url" a valid URL? $isValidUrl');

  // Test IP address validation
  var ipAddress = "192.168.1.1";
  var isValidIpAddress = Validator.ipAddress(ipAddress);
  print('Is "$ipAddress" a valid IP address? $isValidIpAddress');
}
2
likes
160
pub points
76%
popularity

Publisher

unverified uploader

A Dart package for email, url and ip address validation useing regex.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on validator_regex