-
assigned issue to
- edited description
Expect Regex Broken
Issue #466
closed
Not sure what the problem here is or why it's kicking back my regex which is POSIX compatible and it's dirt simple:
EXPECT "^\xFF\xFF\xFF\xFF\x49[\x00-\xFF]*"
output:
[CDT Sep 12 02:48:45] error : 'l4d2.27015' failed protocol test [generic] at [104.149.238.200]:27015 [UDP/IP] -- GENERIC: received unexpected data [<FF><FF><FF><FF>I^QLPS | DLLSTX #1\0c1m1_hotel\0left4dead2\0Left 4 Dead 2\0&^B\0^D\0dl\0^A2.1.4.6\0<B1><87>i^D<E4><91>*<D8>^\@^Acoop,empty,secure] -- No match
The regex runs in other engines PHP/Python/Perl/etc just fine.
Comments (2)
-
repo owner -
repo owner - changed status to closed
The "\xFF" pattern is not IEEE standard 1003.2 ("POSIX.2") compatible.
Some regular expression libraries (such as MacOSX's implementation) support enabling this syntax by adding REG_ENHANCED flag for regcomp(), to support PCRE style syntax (which may conflict with the IEEE 1003.2), but it's not available on all platforms (namely linux's regex).
- Log in to comment