Hacker News new | ask | show | jobs
by binstub 2244 days ago
Nice intro. Tangential question. Is there a regex tool that shows where the expression failed ? Not in syntax, but the logical failure point? Would be useful for when an expression gets a little long and nested and modifications need to be made.

Edit: I mean like:

Target text is abcde

Regex is /abe/

Is there a tool that will tell me it matched a and b and then failed trying to match e ?

Those sites are great resources but they are showing pass/fail and do show an excellent breakdown when something satisfies the expression, but I’m just wondering if there is something that shows partial matching until the failure point?

2 comments

Wow, where have I been. That’s awesome. Exactly what I was looking for . Thanks. My Google fu obviously is lacking.
https://regexr.com/

https://regex101.com/

These websites have saved me hours of time at this point.