string_utility 0.1.2 icon indicating copy to clipboard operation
string_utility: ^0.1.2 copied to clipboard

string utility with common regex use cases. removing whitespace, is valid url, valid email, aphanumeric character, contain uppercase, contain lowercase, etc.

String Utility #

an extension library to deal with common String and Regex problem.

avoid copy-pasta common regex by using this library.

Features #

  • check string contain lowercase and uppercase
  • check string contain space
  • check is string alphanumerc, alphanumeric uppercase., alphanumeric uppercase with symbol.
  • remove extra whitespace.
  • censor sensitive string
  • check is string url formal
  • check is string email fomat

Installing #

add this to pubspec.yaml

string_utility: any

get dependency

pub get

or

flutter pub get

Usage #

import first

import 'package:string_utility/string_utility.dart';

then, you can start using for example checking string is a valid email :

print('me@mtmail.co.id'.isEmail)

// True
6
likes
80
pub points
9%
popularity

Publisher

unverified uploader

string utility with common regex use cases. removing whitespace, is valid url, valid email, aphanumeric character, contain uppercase, contain lowercase, etc.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

email_validator

More

Packages that depend on string_utility