Well, I think I found the solution to my problem. Don't know
how to explain it, but it works. I think because I am backtracking
to find repeating characters, I need to find occurrences of 2
repeating characters, since the third is the backtracked character.
See attached solution. The alphanumeric check returns "8"
(the first "P") and the non-alphanumeric check returns "3" (the
first "%").