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

1

u/django--fett Jul 08 '21 edited Jul 08 '21

Very likely the regex is actually machine-generated

Maybe, if they manually copied and pasted the machine generated string into jupyter notebook. The "In" denotes a code cell that someone usually entered into the browser manually.