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
Case insensitive searching is Unicode-aware and uses simple case folding.
I would like to request full case folding support.
Why do I need full case folding?
We are currently using libicu which supports full case folding. We have tested using regex on our datasets and full case folding turns out to be a requirement for the migration towards regex from libicu.
Do you need help (to implement this feature)?
I understand if you don't want to enable this by default, working towards a feature flag would be a workable solution from our point of view. We can work on the feature if the regex team would be open to having it.
We didn't make any progress towards implementing this feature, i.e. no patch is lying around.
Example
Regex (?i)sss with full case folding enabled would match:
sss
ßs
sß
Feel free to inquire for additional information if something is missing from the request.
The text was updated successfully, but these errors were encountered:
This ain't happening, sorry. I'm surprised that you're offering to work on this, because this is likely something that is completely impractical to implement in a finite automaton regex engine (like this crate is).
UTS#18 offers an out though. Instead, what you should do is normalize both your pattern and your haystack using full default case folding (for which there are crates to do it).
If I'm wrong about its difficultly and you do end up implementing this in a fork, please feel free to re-open this and we can explore what it would take to upstream it.
XRef: #428, https://docs.rs/regex/1.11.1/regex/index.html#unicode
According to the documentation:
I would like to request full case folding support.
Why do I need full case folding?
We are currently using
libicu
which supports full case folding. We have tested usingregex
on our datasets and full case folding turns out to be a requirement for the migration towardsregex
fromlibicu
.Do you need help (to implement this feature)?
I understand if you don't want to enable this by default, working towards a feature flag would be a workable solution from our point of view. We can work on the feature if the
regex
team would be open to having it.We didn't make any progress towards implementing this feature, i.e. no patch is lying around.
Example
Regex
(?i)sss
with full case folding enabled would match:sss
ßs
sß
Feel free to inquire for additional information if something is missing from the request.
The text was updated successfully, but these errors were encountered: