It's how I learned regex years ago, and I still use it today to test/build more complex patterns.
Show HN: Regex Cheatsheet
21–30 of 135 posts
Re: Show HN: Regex Cheatsheet
#22I'm loving the graphs which for the first time in years are giving me an idea of what an expression is actually doing. Just because the visualization is kept in a form that is easy to understand with a programming background but can also be translated to the expression itself in a straightforward manner.
Re: Show HN: Regex Cheatsheet
#23Re: Show HN: Regex Cheatsheet
#24Re: Show HN: Regex Cheatsheet
#25grabs popcorn
Re: Show HN: Regex Cheatsheet
#26Is there a bug? In regexp for IPv4: https://ihateregex.io/expr/ip expression ends with {3} but the diagram states "2 times" in lower right - shouldn't it say "3 times"?
Because if I specify x{0,3}, i have 2 paths - around x and thru x + at most 2 more times
Re: Show HN: Regex Cheatsheet
#27^[a-z0-9_-]{3,15}$ The username reference doesn't match 16 characters as claimed
looks good to me
Re: Show HN: Regex Cheatsheet
#28The IPv6 regex is surprisingly complicated.
Re: Show HN: Regex Cheatsheet
#29Re: Show HN: Regex Cheatsheet
#30This is really cool! 2 points: 1. it fiddled with my back button which is a bit annoying 2. a better email sample is ^[^@]+@[^@]+\.[^@]+$ which removes the 2 ampersands problem.
You'll probably want to add \S to those character classes as well, or it matches "it's an @ sign. not an ampersand."