Added note on PCRE backreferences

This commit is contained in:
2025-01-26 22:19:16 -05:00
parent ff250338b4
commit 68a3581d93

View File

@@ -0,0 +1,7 @@
In PCRE, following a backreference by _any_ number seems to turn it into an octal value. Why is this?
Eg.
`(a)\1` <-- Backreference
`(a)\17` <-- Octal '17'
`(a)\19` <-- Octal 1, then literal 9
`(a)\1a` <-- Backreference, then 'a'