5 ms·
Regex Visualization: give it a regex and see the state diagram
- dpkendal 16y agoKept giving me errors about unbalanced brackets, but the same regexps work perfectly as patterns in BBEdit (PCRE) and in Ruby (Onig).
- turbodog 16y agoIt would be more useful if the state diagram page displayed the original regex.
- nerfhammer 16y agoThe re.DEBUG flag for the python re module is also really useful in this regard
- _delirium 16y agoTwo other regex-understanding tools I've found useful: http://www.regexbuddy.com/ http://www.regexbuddy.com/ http://www.regexio.com/ http://www.regexio.com/
- darragjm 16y agoMy personal favorite: http://gskinner.com/RegExr/ http://gskinner.com/RegExr/
- michaelbuckbee 16y agoOne more: http://www.rubular.com http://www.rubular.com
- k4st 16y agoThis is nice for visualizing an NFA and the minimized DFA for asome regular expression (note: regular!!): http://osteele.com/tools/reanimator/ http://osteele.com/tools/reanimator/. The aforementioned tool also lets you give input and highlights the current states of each FA.
- VeXocide 16y agoUnfortunately it doesn't allow me to enter the regular expression found here: http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html. It's horrendous I but would love to see it visualized.
- handler 16y agoawesome. the best would be if you could go in the opposite direction. like if you could create regular expressions in the image view and have it output the text version. this would probably help a lot of people who aren't 'ninjas' like you and me ;?j
- abraham 16y agoVisualization of the perfect email regex: http://goo.gl/p80Ky http://goo.gl/p80Ky Regex source: http://fightingforalostcause.net/misc/2006/compare-email-regex.php http://fightingforalostcause.net/misc/2006/compare-email-reg...
- prodigal_erik 16y agoPlease don't use that to filter real email addresses. The author admitted he doesn't distinguish between addresses which are actually invalid and those he merely doesn't think are advisable to use, and it's not clear whether he even read the RFC 2822 grammar. At a glance, there's only one regex on the page that makes any effort to handle the valid address "Your Name"@example.com.
- Andys 16y agoWas the visualisation done with a free library? Anyone know the name of it?
- js4all 16y agoThis is really helpful. I always struggle with regex expressions when they reach some complexity.
- thisrod 16y agoI think the ultimate tool for understanding regexps is Russ Cox's notes: http://swtch.com/~rsc/regexp/ http://swtch.com/~rsc/regexp/ When explained well, the big picture of NFAs and DFAs is bog simple. I'm sure some of the details are messy, but I expect they rarely matter.