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

An implementation of RFC 9485 I-Regexp: An Interoperable Regexp Format. Checks the I-Regexp for correctness, allows matching by substring or by entire string.

iregexp #

A Dart implementation of RFC 9485 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
}
2
likes
160
points
299k
downloads

Publisher

verified publisherkarapetov.com

Weekly Downloads

An implementation of RFC 9485 I-Regexp: An Interoperable Regexp Format. Checks the I-Regexp for correctness, allows matching by substring or by entire string.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

petitparser

More

Packages that depend on iregexp