regex_range 0.1.0+1 regex_range: ^0.1.0+1 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'));
print(range(0, 255).pattern);
}