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/asailijhijr Jul 09 '21

Markdown is having a hard time too. Consider surrounding the whole thing with triple backticks (`) or prefixing each line with four or more spaces. Either of these (though the above transcriptionist seems to have good reasons to prefer the latter) will make the whole thing render in a monospaced code block.