Search packages, repositories and app categories

Package detailsv0.2.1

iregexp

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.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
391K
Likes
3
Pub points
160

Install package

flutter pub add iregexp

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

iregexp is a Dart package implementing RFC 9485's I-Regexp, an interoperable regular expression format designed for consistent behavior across platforms and languages. It validates I-Regexp patterns for correctness and supports matching either by substring or entire string. The package ensures reliable text pattern matching in cross-platform applications, making it ideal for developers needing predictable regex behavior without platform-specific quirks. Built with portability in mind, it works seamlessly on Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Cross-platform regex validation
  • Interoperable pattern matching
  • String validation in multi-platform apps
  • Parsing structured text consistently
  • Secure input filtering
  • Internationalized text processing

Key features

  • RFC 9485 compliant
  • Substring and full-string matching
  • Platform-agnostic regex behavior
  • Pattern correctness validation
  • Supports all major platforms
  • Lightweight and fast

Suitable for

  • Developers building cross-platform apps
  • Teams requiring consistent regex behavior
  • Applications handling user input securely
  • Text parsing tools needing standardization
  • Projects prioritizing interoperability

Considerations

  • Limited to I-Regexp syntax only
  • No support for advanced regex features like backreferences
  • Not suitable for complex regex scenarios
  • Requires adherence to RFC 9485 specification
  • Best for standardized, predictable matching over flexibility

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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
}

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package