J
Jon Shemitz
"(\d+).{3}" does match "3abc", as expected, and "(\d+).{\2}" doesn't
compile. So, why doesn't "(\d+).{\1}" match "3abc"?
compile. So, why doesn't "(\d+).{\1}" match "3abc"?
Jon Shemitz said:"(\d+).{3}" does match "3abc", as expected, and "(\d+).{\2}" doesn't
compile. So, why doesn't "(\d+).{\1}" match "3abc"?
John said:Why would it match? I haven't seen anywhere that the number in {n} can be a
backreference. Have you seen that somewhere?
Jon Shemitz said:No, I haven't. But "(\d+).{\1}" is not disallowed the way that
"(\d+).{\2}" is, so it looked like the engine understands
backreferences in count clauses at SOME level.