Skip to main content

Terminal based regex visualization tool and debugger.

Project description

RE-view

TUI tool to visualize regular expressions in real time.

Command line usage

review [options] [--] [INPUT_FILE | -]

--help, -h                      show this help message
--regex REGEX, -r REGEX         set starting regex
--flags [FLAGS], -f [FLAGS]     set starting flags, defaults to M
    If -f or --flags is passed with no arguments, start program with no active
    flags.

`INPUT_FILE` is the file to be read and displayed to test the regex.
If - (a single dash) is supplied instead of a filename, the text is
read from stdin.
If `INPUT_FILE` is not supplied at all, a randomly generated Lorem-style text
will be used.

Screenshots

Coming Soon™.

Python regex reference

https://docs.python.org/3/library/re.html

Application usage

The window is divided into two parts:

  • The lower half displays the current regular expression (regex) being tested.
  • The upper half displays text that is highlighted according to the regex typed.

The text displayed in the upper part may be wrapped. Continuation of long lines start with "> ", and do not match ^, even if the multiline flag is enabled.

You may edit the regex by typing on your keyboard. The arrows, home and end keys move the cursor to edit different parts of the regex. The backspace and delete keys both erase the character before the cursor.

To change the active regex flags, press CTRL-F to enter "flag mode". While in flag mode, the currently active flags are displayed, and you may press any of the given keys to activate or deactivate the corresponding flag.

If you enable a flag that is incompatible with any others, these others will be disabled and the new one will take place.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

re-view-0.11.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

re_view-0.11.2-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file re-view-0.11.2.tar.gz.

File metadata

  • Download URL: re-view-0.11.2.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for re-view-0.11.2.tar.gz
Algorithm Hash digest
SHA256 e7842730be925b529ff6f93d5f91fb6ca1b650f4353f34e31aecb863121ba621
MD5 bb60fc320ee51fdc116c183b9b5b7874
BLAKE2b-256 1c4dad2ba7520008a722d1a340a3fe2c5459b7a3760b73a99e99d9e4314c965d

See more details on using hashes here.

File details

Details for the file re_view-0.11.2-py3-none-any.whl.

File metadata

  • Download URL: re_view-0.11.2-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for re_view-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b08afed12acf4c1164f21822afbff62bcd3a201fcc6e90607d02f79f289feffd
MD5 7bd7209e952095653b4460047ea5b475
BLAKE2b-256 e6d7182a06d903700f2ae76be1db89166253b658cf0fbbe69162d8c042e29198

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page