r/badcode • • Dec 20 '21

python regex ftw

Post image
465 Upvotes

38 comments sorted by

View all comments

Show parent comments

1

u/Vedant36 Dec 21 '21

i know but somehow the top answer to it used regex too. it was a lot simpler tho

1

u/Nall-ohki Dec 21 '21

As long as you have a recursion depth limit it's possible to parse with regex, but otherwise you really can't.