exrex - Man Page
manual page for exrex 0.11.0
Examples (TL;DR)
- Generate all possible strings that match a
regex
:exrex 'regex'
- Generate a random string that matches a
regex
:exrex [-r|--random] 'regex'
- Generate at most 100 strings that match a
regex
:exrex [-m|--max-number] 100 'regex'
- Generate all possible strings that match a
regex
, joined by a custom delimiter string:exrex [-d|--delimiter] ", " 'regex'
- Print count of all possible strings that match a
regex
:exrex [-c|--count] 'regex'
- Simplify a
regex
:exrex [-s|--simplify] 'ab|ac'
- Print eyes:
exrex '[oO0](_)[oO0]'
- Print a boat:
exrex '( {20}(\| *\\|-{22}|\|)|\.={50}| ( ){0,5}\\\.| {12}~{39})'
Description
usage: exrex [-h] [-o FILE] [-l N] [-c] [-m N] [-r] [-s] [-d DELIMITER] [-v]
REGEX
exrex - regular expression string generator
positional arguments
- REGEX
REGEX string
options
- -h, --help
show this help message and exit
- -o, --output FILE
Output file - default is STDOUT
- -l, --limit N
Max limit for range size - default is 20
- -c, --count
Count matching strings
- -m, --max-number N
Max number of strings - default is -1
- -r, --random
Returns a random string that matches to the regex
- -s, --simplify
Simplifies a regular expression
- -d, --delimiter DELIMITER
Delimiter - default is \n
- -v, --verbose
Verbose mode
Info
August 2025 exrex 0.11.0