4 ms·
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
by __tk__ 7y ago
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.
- geongeorgek 7y agoI can't take credit for the visualizations although implementing it was a pain in the ass. It was originally created by: https://regexper.com/ https://regexper.com/
- noxToken 7y agoGraphs 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.
- leibnitz27 7y agoI knocked up a silly dynamic regex grapher a while back as a little teaching aid - mildly fun https://www.benf.org/other/regexview/ https://www.benf.org/other/regexview/