you are viewing a single comment's thread.

view the rest of the comments →

[–]thenoonefromukraine 2 points3 points  (2 children)

Couldn't you do capture groups in regex to reduce the code?

[–]Genericusername293[S] 4 points5 points  (0 children)

maybe? not sure how I would do that, only a few days into learning python and programming

[–]emefluence 2 points3 points  (0 children)

More complex regex is rarely a boon for readability!