grex
Generate regexs. tldr-pages
On several platforms
Several platforms
Generate a simple regex
grex string1 string2 ...IdentifyGenerate a case-insensitive regex
grex --ignore-case string1 string2 ...IdentifyReplace digits with \d
grex --digits string1 string2 ...IdentifyReplace Unicode word character with \w
grex --words string1 string2 ...IdentifyReplace spaces with \s
grex --spaces string1 string2 ...IdentifyDetect repeating patterns in the input and shorten them using {min,max} quantifiers
grex --repetitions string1 string2 ...IdentifyGenerate regex of test cases (separated by newline) from a file
grex --file path/to/fileIdentifyDo not generate anchors and non-capture groups
grex --no-anchors --capture-groups string1 string2 ...Identify