stefano-bragaglia / regex

Parsing RegEx's in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

regex

Parsing RegEx's in Python

brew install graphviz     # or install "dot" in any other way

git clone https://github.com/stefano-bragaglia/regex.git

cd regex

virtualenv --python=python3.7 .env

source .env/bin/activate

pip install --pre pybuilder

pyb install_dependencies

pyb install 

dotregex.py

ls -al

Then, see the .pngs just generated.

Notes:

  • Dashed mean (potentially) optional
  • Green means (potentially) repeated
  • Blue means greedy
  • Red means negated
  • Sequence of atoms with arity 1 are collapsed
  • Charsets are simplified
  • Atoms are simplified

Reference:

Other potentially interesting projects:

About

Parsing RegEx's in Python

License:GNU General Public License v3.0


Languages

Language:Python 100.0%