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
}