Forrest logo
back to the exrex tool

exrex:tldr:5772a

exrex: Generate all possible strings that match a regular expression.
$ exrex '${regular_expression}'
try on your machine

The command "exrex" is a command line tool that generates all possible strings that match the given regular expression. The regular expression should be provided within single quotes after the command. Here's how the command works:

  1. exrex: This is the name of the command.
  2. '${regular_expression}': This is the placeholder where you need to replace it with the actual regular expression you want to generate strings for. The regular expression can include any valid regular expression pattern.

For example, if you have the following command: exrex '[0-9]{4}'

This command will generate all possible strings of length 4, consisting of digits 0-9. The output may include strings like '0000', '0001', '0002', ..., '9999'.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the exrex tool