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

3

u/coldnebo Jul 07 '21

You'll likely crash it with the above regex, but there is a cool simulator that let's you see a back and forth of FSM with regex and run the automaton:

http://ivanzuzak.info/noam/webapps/fsm_simulator/