Added note on PCRE backreferences
This commit is contained in:
7
noteOnPCREBackreferences.txt
Normal file
7
noteOnPCREBackreferences.txt
Normal 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'
|
Reference in New Issue
Block a user