Quiz · 5 questions
🛠️ Real-World Patterns
Steal-and-adapt patterns for the things you actually parse
Level 0Pattern-Curious
0 XP0/90 lessons0/15 achievements
0/100 XP to next level100 XP to go0% complete
Quiz
01What's the right way to validate emails in production?
Hint
Real email validity = send a verification message.
02Why doesn't
\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b validate IPs correctly?Hint
Each octet is 0-255, not 0-999.
03Why is comparing version strings with regex risky?
Hint
String comparison says '10' < '9' alphabetically.
04What's the danger of using
str.split(',') for CSV?Hint
Quoted fields can contain commas inside.
05Why should you use a parser instead of regex for HTML?
Hint
Nested structure needs context tracking, which regex can't do.
Comments 0
🔔 Reply notifications (sign in)Sign in — Please sign in to comment.
No comments yet — be the first.