exrex
Generate all/random matching strings for a regex. tldr-pages
On several platforms
Several platforms
Generate all/random matching strings for a regex. It can also simplify regexes.
Generate all possible strings that match a regex
exrex 'regex'IdentifyGenerate a random string that matches a regex
exrex --random 'regex'IdentifyGenerate at most 100 strings that match a regex
exrex --max-number 100 'regex'IdentifyGenerate all possible strings that match a regex, joined by a custom delimiter string
exrex --delimiter ", " 'regex'IdentifyPrint count of all possible strings that match a regex
exrex --count 'regex'IdentifySimplify a regex
exrex --simplify 'ab'IdentifyPrint eyes
exrex '[oO0](_)[oO0]'IdentifyPrint a boat
exrex '( {20}(\| *\\|-{22}|\|)|\.={50}| ( ){0,5}\\\.| {12}~{39})'Identify