All apps/grex

grex

grex

Generates regular expressions from user-provided test cases.

Runs as grex|macOS, Linux, Windows|github.com

Autocomplete

Fig spec, with what the manifest adds · 17 options
Published once and never changed; check the digest before caching
sha256
c902fd40d5e088a7957c144034583b371fb869729e5f3ca6809c09e69970906b
Size
3673 bytes
OptionsOn grex itself
-d--digits
Converts any Unicode decimal digit to \d
-D--non-digits
Converts any character which is not a Unicode decimal digit to \D
-s--spaces
Converts any Unicode whitespace character to \s
-S--non-spaces
Converts any character which is not a Unicode whitespace character to \S
-w--words
Converts any Unicode word character to \w
-W--non-words
Converts any character which is not a Unicode word character to \W
-r--repetitions
Detects repeated non-overlapping substrings and converts them to {min,max} quantifier notation
-e--escape
Replaces all non-ASCII characters with unicode escape sequences
--with-surrogates
Converts astral code points to surrogate pairs if --escape is set
-i--ignore-case
Performs case-insensitive matching, letters match both upper and lower case
-g--capture-groups
Replaces non-capturing groups by capturing ones
-c--colorize
Provides syntax highlighting for the resulting regular expression
-h--help
Prints help information
-v--version
Prints version information
-f--file
Reads test cases on separate lines from a file <value>
--min-repetitions
Specifies the minimum quantity of substring repetitions to be converted if --repetitions is set [default: 1] <QUANTITY>
--min-substring-length
Specifies the minimum length a repeated substring must have in order to be converted if --repetitions is set [default: 1] <LENGTH>
ArgumentsPositional, in order
<inputs>
Example strings the regex must match. · optional · repeatable