v0.2.0
iregexp
RFC 9485 I-Regexp:相互運用可能な正規表現形式の実装。I-Regexp の正当性を検証し、部分文字列または完全な文字列による一致を許可します。
3いいね 22.7万30日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
I-Regexp の Dart 実装:相互運用可能な正規表現形式
^7.0.0^6.0.0^1.21.1^0.0.4以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
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
}