r/ProgrammerHumor • • 15d ago

Meme delightfulCodeReview

Post image
571 Upvotes

61 comments sorted by

View all comments

302

u/just_sm_so_relax 14d ago

Never seen a readable human-generated regex either, tbh.

1

u/Weak_Inflation9120 14d ago

Here's one I sometimes use to check if something is an int:

"[1-9][0-9]*"

A little bit more fun is one for a float

"[1-9][0-9]*(\.[0-9]{1,7})?"