You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add support for Latin-1 encoding of regexes? Currently the re2 module can't be used as a drop-in replacement of 're' for pretty simple regex searches of binary data because of it forcing UTF-8 encoding on the regexes. https://github.com/axiak/pyre2/blob/master/src/re2.pyx#L950
RE2 itself supports it, it would just be a matter of adding the option to pass _re2.EncodingLatin1 there.
Thanks!
-Brad
The text was updated successfully, but these errors were encountered:
Would it be possible to add support for Latin-1 encoding of regexes? Currently the re2 module can't be used as a drop-in replacement of 're' for pretty simple regex searches of binary data because of it forcing UTF-8 encoding on the regexes.
https://github.com/axiak/pyre2/blob/master/src/re2.pyx#L950
RE2 itself supports it, it would just be a matter of adding the option to pass _re2.EncodingLatin1 there.
Thanks!
-Brad
The text was updated successfully, but these errors were encountered: