exrex

(★ 957)

Irregular methods on regular expressions

File Explorer

  • .gitignore
  • .travis.yml
  • COPYING
  • exrex.py
  • MANIFEST.in
  • README.md
  • setup.py
  • tests.py
  • tox.ini

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

exrex

View Details ▼

Generate all/random matching strings for a `regex`.
It can also simplify `regex`es.

exrex '{{regex}}'

Generate all possible strings that match a `regex`:

exrex {{[-r|--random]}} '{{regex}}'

Generate a random string that matches a `regex`:

exrex {{[-m|--max-number]}} {{100}} '{{regex}}'

Generate at most 100 strings that match a `regex`:

🔍

pip install

View Details ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

🔍

python

View Details ▼

Python language interpreter.

python

Start a REPL (interactive shell):

python {{path/to/file.py}}

Execute a specific Python file:

python -i {{path/to/file.py}}

Execute a specific Python file and start a REPL:

// repository documentation