A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases
RegExpBuilder.with_syntax_highlighting()
in the library as it only makes sense for the CLI.atty
has been removed in favor of std::io::IsTerminal
in Rust >= 1.70.0. As a result, Rust >= 1.70.0 is now needed to compile the CLI.structopt
has been replaced with clap
providing much nicer help output for the command-line tool.RegExpBuilder
in order to replace the enum Feature
and make the library API more consistent. (#47)--ignore-case
command-line flag or with Feature::CaseInsensitivity
in the library (#23)--capture-groups
command-line flag or with Feature::CapturingGroup
in the library (#15)--min-repetitions
and --min-substring-length
or using the library methods RegExpBuilder.with_minimum_repetitions()
and RegExpBuilder.with_minimum_substring_length()
(#10)RegExpBuilder::from_file()
(#13)Finally, the first stable release 1.0.0 is there. :-)
\d
, \D
, \s
, \S
, \w
, \W
is now supportedaaabaaab
which were previously converted to ^(aaab){2}$
are now converted to ^(a{3}b){2}$
.--colorize
command-line flag or with the library method RegExpBuilder.with_syntax_highlighting()