Match against 'abbbbbbc'
01234567
1) ok! pos = 0. (zw)
2) ok! Found an 'a' at pos 0. pos = 1.
3) ok! Found 6 'b's at pos 1 through 6. pos = 7.
4) fail! Did not find a 'b' at pos 7. Backtrack!
3) ok! Found 5 'b's at pos 1 through 5. pos = 6.
4) ok! Found a 'b' at pos 6. pos = 7.
5) ok! Found a 'c' at pos 7. pos = 8.
Match!
####
Match against 'root: email'
01234567890
1) ok! pos = 0. (zw)
2) ok! Found a 'root:' at pos 0 through 4. pos = 5.
3) ok! Found 1 '\s' at pos 5. pos = 6.
4) fail! Found 'email' at pos 6 through 10. Backtrack!
3) ok! Found 0 '\s' at pos 5. pos = 5. (zw)
4) ok! Found something other than 'email' at pos 5. pos = 5. (zwla)
(found ' email')
Match!
##
##
Match against 'root: email'
01234567890
1) ok! pos = 0. (zw)
2) ok! Found a 'root:' at pos 0 through 4. pos = 5.
3) ok! Found 1 '\s' at pos 5. pos = 6.
4) fail! Found 'email' at pos 6 through 10. Backtrack!
3) ok! Found 0 '\s' at pos 5. pos = 5. (zw)
4) ok! Found something other than 'email' at pos 5. pos = 5. (zwla)
(found ' email')
5) fail! Did not find a '\S' at pos 5. Backtrack!
Nothing more to try.
No match!
##
##
Match against 'root: hisemail'
01234567890123
1) ok! pos = 0. (zw)
2) ok! Found a 'root:' at pos 0 through 4. pos = 5.
3) ok! Found 1 '\s' at pos 5. pos = 6.
4) ok! Found something other than 'email' at pos 6. pos = 6. (zwla)
(found 'hisemail')
5) ok! Found a '\S' at pos 6. pos = 6.
Match!