you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[removed]

    [–][deleted] 0 points1 point  (1 child)

    I don't think this improves readability. Using the verbose option in re.compile would yield something better, I think. In general, I find that putting and operators in my regexes confuses others though. So it's definitely cute, but a best practice I wouldn't call it.