r/madeinpython • u/[deleted] • May 06 '21
I created a python library that makes Regex more readable in code.
https://github.com/ryanpeach/py_idiomatic_regex
50
Upvotes
1
u/Rythemeius May 07 '21
The "Documentation Available Here" link gives me a 404
2
May 07 '21
Yes I'm having trouble with the build system (TravisCI) deploying Sphinx. Next update.
In the meantime, the entire code is pretty much contained in
iregex/regex.pyinside theRegexclass.1
May 13 '21
Documentation works now and is being maintained by travisci on github pages (unusually hard, see this repo for a good example!).
1
1
4
1
u/yaxriifgyn May 07 '21
I just use the verbosemode, using re.X or re.VERBOSE or (?x) option to rewrite
as
You just have to remember to use a backslash-space or backslash-s to match a space or any white space.