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
}