Re:Show HN: Regex Cheatsheet
by __tk__ on Friday January 31, 2020 @08:26AM
(#22201449)
I'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.
[ Parent
| on HN ]
Graphs for these really hammer home the point that regular expressions aren't magic. Parsers have so many abilities that when starting out, my expressions were horribly inefficient and missed many corner cases. Learning to graph them just like automata immediately made things easier.
When green devs are having trouble with regular expressions (and don't have a formal computer science background), I like to give them a crash course in DFAs.
Re:Show HN: Regex Cheatsheet
by geongeorgek on Friday January 31, 2020 @08:38AM
(#22201524)
I can't take credit for the visualizations although implementing it was a pain in the ass.
It was originally created by: https://regexper.com/
Re:Show HN: Regex Cheatsheet
by leibnitz27 on Friday January 31, 2020 @09:33AM
(#22201935)
I knocked up a silly dynamic regex grapher a while back as a little teaching aid - mildly fun