regex_range 0.0.1+2 regex_range: ^0.0.1+2 copied to clipboard
Generates a Regular Expression that matches a range of numbers or characters. Use the generated RegExp or pattern.
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'));
}