4 ms·
Looks great, though wasn't sure about which regex flavor it supports. Seems JS since variable lookbehind is supported and GitHub repo mentions Typescript. http
by asicsp 4y ago
Looks great, though wasn't sure about which regex flavor it supports. Seems JS since variable lookbehind is supported and GitHub repo mentions Typescript.
https://www.debuggex.com/ https://www.debuggex.com/ is another such resource which supports JS/Python/PCRE.
- mdaniel 4y agohttps://www.debuggex.com/pricing https://www.debuggex.com/pricing wow, I think that's the first time I've ever seen pricing for something like this, let alone an "Enterprise" plan. That's actually doubly weird since they say it's the team behind ParseHub so they already have a day job with a stream of income
- rzmmm 4y agoDebuggex looks interesting. I've never seen regex library/tool before which shows the mismatching location in the input string. I wonder how one could do the same with python/javascript or other programming languages?
- mdaniel 4y agoI'd guess it's building the FSA then running it but instead of yes/no, emitting the last matched character when in a failed state. I believe that's a common(?) trick for parsers, so it's plausible they do it for regexes As for why "standard" libraries don't offer it, I'd guess it's a development-time concession that production usage doesn't require; python specifically does ship batteries included with the tooling required to make such a thing, but appears to shop just shy of cooking the actual FSA >>> re.sre_parse.parse(r'^(([hH]acker)[ ]?([nN]ews|newsletter))$') [(AT, AT_BEGINNING), (SUBPATTERN, (1, 0, 0, [(SUBPATTERN...