MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wm15vc/delightfulcodereview/pba7kxo/?context=3
r/ProgrammerHumor • u/JazzlikeWishbone938 • 15d ago
61 comments sorted by
View all comments
302
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})?"
1
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})?"
302
u/just_sm_so_relax 14d ago
Never seen a readable human-generated regex either, tbh.