« first day (509 days earlier)      last day (3283 days later) » 

12:55 AM
> I wonder if it's possible to do that kind of debugging with pcretest...
It would output something like
~BIRD.*?(?:CAT(*SKIP)(*F)|WORM)~C
The BIRD gets to the WORM
--->The BIRD gets to the WORM
+0 ^ B
+1 ^^ I
+2 ^ ^ R
+3 ^ ^ D
+4 ^ ^ .*?
+7 ^ ^ (?:CAT(*SKIP)(*F)|WORM)
+10 ^ ^ C
+25 ^ ^ W
+7 ^ ^ (?:CAT(*SKIP)(*F)|WORM)
+10 ^ ^ C
+25 ^ ^ W
That is just the beginning, and the formatting is not right on this chat.
To do this, create a text file with this exact text:
~BIRD.*?(?:CAT(*SKIP)(*F)|WORM)~C
The BIRD gets to the WORM
The BIRD is caught by a CAT before getting the WORM
Call that file catworm.txt
Then you can do pcretest catworm.txt
One benefit is that you are guaranteed that this is the debug path for PCRE
 
1:51 AM
@zx81 Consider using fixed font. :D
 
@Unihedron You're right—I use it all the time, for instance a couple lines above, but assumed it wouldn't work on such a large block. :)
 
That's really nice graphical output for a CUI engine.
I also found out that this snippet (.*?(?:a(*SKIP)(*F)|b)) works better if the primary group (the section before S-F; a) is a literal sequence. Otherwise there may be a lot of backtracking.
 
 
9 hours later…
11:27 AM
@zx81 hey, thanks. Awesome!
 

« first day (509 days earlier)      last day (3283 days later) »