iregexp 0.1.1 copy "iregexp: ^0.1.1" to clipboard
iregexp: ^0.1.1 copied to clipboard

A Dart library for I-Regexp: An Interoperable Regexp Format

iregexp #

A Dart implementation of I-Regexp: An Interoperable Regexp Format

This implementation is validating, that is IRegexp(pattern) throws a formatException if pattern does not conform to I-Regexp. Internally it uses the built-in RegExp class.

import 'package:iregexp/iregexp.dart';

// An example of using the IRegexp class.
void main() {
  final iRegexp = IRegexp('[0-9]+.[0-9]+.[0-9]+');
  print(iRegexp.matches('1.2.3')); // true
  print(iRegexp.matches('foo')); // false
}
0
likes
120
pub points
41%
popularity

Publisher

verified publisherkarapetov.com

A Dart library for I-Regexp: An Interoperable Regexp Format

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

petitparser

More

Packages that depend on iregexp