Closed mwagnerEE closed 1 year ago
I apologize, I was not correct. My mistake was not noticing that the c# compiler is converting the string hex character before it even gets to the Regex engine. The c# compiler accepts 1 to 4 digits after \x
in strings. But if I use a literal string the results align with Regex101's implementation.
Bug Description
\x
uses the two hex digits after\x
. I'm thinking this is because Microsoft's own Regular Expression Language - Quick Reference says:\x
nnHowever, in reality when using the Regex engine in .NET,
\x
will accept 1 to 4 digits.Reproduction steps
Enter the patterns:
[\x0600-\x9900]
[\x060-\x9900]
[\x06-\x9900]
[\x0-\x9900]
with test string
hi
Expected Outcome
See here: https://dotnetfiddle.net/JNlsRR
Actual Outcome
Browser
Chrome
OS
Windows 10 x64