|
|
|
|
|
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? |
|
http://p3rl.org/rxrx
rxrx -e'"abcde" =~ /abe/'
Demo: https://blog-cloudflare-com-assets.storage.googleapis.com/20...
http://p3rl.org/re#'debug'-mode
perl -Mre=debug -e'"abcde" =~ /abe/'
----
https://stackoverflow.com/questions/2348694/how-do-you-debug...