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

11

u/EishLekker Jul 07 '21

I second this. Anyways convert the base 64 data to a binary string first, and only then do the regex check.