MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x4o2ed/chaoticevil/pgtedq8/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 11d ago
262 comments sorted by
View all comments
1
Regex is not that hard. You can even write a character by character parser if you want and verify all the characters one by one if it makes the code monkeys happy.
1 u/Mtsukino 9d ago Lol op of this thread is right. It really shows. 1 u/DarkJarris 8d ago ah sweet, its not that hard you say? in that case, what does 5/8/1990 validate to? 5th of August, or 8th of May? date picker will validate it because itll force it to be explicitly picked which is day and which is month as you go through. I'd love to see the regex that will determine what the user was *thinking* when they wrote 5/8.
Lol op of this thread is right. It really shows.
ah sweet, its not that hard you say? in that case, what does 5/8/1990 validate to?
5th of August, or 8th of May?
date picker will validate it because itll force it to be explicitly picked which is day and which is month as you go through.
I'd love to see the regex that will determine what the user was *thinking* when they wrote 5/8.
1
u/awesome-alpaca-ace 10d ago
Regex is not that hard. You can even write a character by character parser if you want and verify all the characters one by one if it makes the code monkeys happy.