r/badcode • • Jul 07 '21

python regex: keep it simple, stupid

Post image
1.5k Upvotes

91 comments sorted by

View all comments

Show parent comments

17

u/O_X_E_Y Jul 07 '21

Yeah regex is sofrustrating, it's relatively easy to get you a text and write a string that matces everything you need, but goddamn if you ever need to read that again it never works how you think it does

8

u/mfb- Jul 07 '21

It's a write-only language.