does disabling Unicode mean I can't search for \u2603? #813
-
Hey there 👋 Is it correct that if I disable all In my use case, I want to apply a regex on a byte slice that represents some file content and that slice could potentially also contain unicode characters. If I were to disable unicode and search for say Basically I am always operating on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
To be clear, and to make sure we're talking about the same thing, these are the docs that I think should answer this question: https://docs.rs/regex/1.5.4/regex/#crate-features In particular, the last couple sentences of the second paragraph I believe are crucial here. Do they answer your question? If not, there might be some other misunderstanding (perhaps on my part) going on here:
So in other words, if compiling a regex like Now maybe you're talking about the Also,
When you say, "so I guess I can use...," what do you mean here? If you're matching on Also, you speak of "disabling Unicode," but I think what you mean is, "disable all crate features starting with
You'll likely also want to disable the |
Beta Was this translation helpful? Give feedback.
To be clear, and to make sure we're talking about the same thing, these are the docs that I think should answer this question: https://docs.rs/regex/1.5.4/regex/#crate-features
In particular, the last couple sentences of the second paragraph I believe are crucial here. Do they answer your question? If not, there might be some other misunderstanding (perhaps on my part) going on here:
So in other words,…