https://github.com/f3ath/iregexp
A Dart implementation of I-Regexp: An Interoperable Regexp Format
https://github.com/f3ath/iregexp
Last synced: 7 months ago
JSON representation
A Dart implementation of I-Regexp: An Interoperable Regexp Format
- Host: GitHub
- URL: https://github.com/f3ath/iregexp
- Owner: f3ath
- License: mit
- Created: 2023-04-01T17:03:43.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T03:41:24.000Z (almost 2 years ago)
- Last Synced: 2025-04-25T13:04:55.323Z (9 months ago)
- Language: Dart
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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.
```dart
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
}
```
[RFC 9485]: https://datatracker.ietf.org/doc/rfc9485/