Open apismensky opened 11 months ago
It might be that it expects octal, I will do some local tests in this, but it could just as well be a bug. I admit I'm not very familiar with this part of the code.
@markos it looks like perl supports octal escapes, but it is supposed to interpret it as a backreference if there have been enough capture groups to make it a valid backreference.
@seanrohead @apismensky This is most likely related to pcre and one of the limitations/differences between pcre and pcre2:
It will probably be fixed when #83 is fixed and we migrate to pcre2.
Regex
a([ -]?)a\\1a|b([ .-]?)b\\2b|c([ -]?)c\\3c|d([ -]?)d\\4d|e([ -]?)e\\5e|f([ -]?)f\\6f|g([ -]?)g\\7g|h([ -]?)h\\8h
should match all following strings: "a a a", "b b b", "c c c", "d d d", "e e e", "f f f", "g g g" and "h h h" but it matches everything except "h h h"test to reproduce:
There is some comment for 8 and 9 in: https://github.com/VectorCamp/vectorscan/blob/master/src/parser/Parser.rl#L1503 . But not sure why 8 and 9 are special cases? Are we supposed to pass them as octal numbers?