regex_range 0.0.1
regex_range: ^0.0.1 copied to clipboard
Generates a Regular Expression that matches a range of numbers or characters. Use the generated RegExp or pattern.
example/main.dart
import 'package:regex_range/regex_range.dart';
void main() {
print(range(-10, 10, exact: true).hasMatch('5'));
print(range(-10, 10, exact: true).hasMatch('-5'));
}