FLUTTER ECOSYSTEM

f3ath/iregexp

Implementação em Dart do I-Regexp: um formato de expressão regular interoperável

Capa do projeto iregexp
Stars
2
Forks
0
Último push (UTC)
6 de jul. de 2025
Status do projeto
Ativo
Alexey GitHub avatar
GITHUB User

Alexey ↗

If I had ever learnt, I should have been a great proficient.

Salesforce Silicon Valley, CA
LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 4 itens
  • petitparser^7.0.0
  • lintsDesenvolvimento^6.0.0
  • testDesenvolvimento^1.21.1
  • check_coverageDesenvolvimento^0.0.4

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

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
}