iregexp 0.1.2 copy "iregexp: ^0.1.2" to clipboard
iregexp: ^0.1.2 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
130
pub points
61%
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