regex-filtered
Efficiently check an input against a large number of patterns
0.2.1
7.9M downloads/mo
#3542 most downloaded on crates.io
ua-parser/uap-rust
What this package is like to depend on
Last release 5 months ago
22 Mar 2026
Too new to tell
only 2 release windows
Some releases are documented
notes for 2 of 4 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
4 releases · first in 2024
1 release in the last 12 months
see the full history below
Release timeline
4 releases · Jun 2024 to Mar 2026Releases
latest 4-
0.2.122 Mar 2026Release notes
Open source →Fixed
- unicode casefolding (#58), due to divergence in casefolding between aho-corasick (ascii only) and regex (full unicode) regexes containing uppercase unicode literals would not be properly selected by the prefilter
Optimized
- replaced
IndexSet<NoHash>by a bespoke IntSet, yielding ~10% throughput improvement and removing the dependencies onindexmapandnohash - repetitions expansions into atoms (#53), repetitions would not be expanded leading to atoms of length 1, and unnecessary acceptance of regexes
- quality of atoms generated by concatenation (#53), allowing subsequent patterns to properly concatenate into atoms generated by concatenation
Other
- updated to edition 2024
Release notes
Open source →- fix regex rewriting which didn't trigger properly in a significant number of cases: any repetition following an explicit character class would be left as-is, leading to memory use being cut down by ~60% (and #2 should have cut down memory use by 75% rather than 15-ish...) #29
- use an atom length of 2 for device parsers, improves performance by
40% at essentially no memory cost, don't touch ua and os as it reduces their performances by 510% instead #31 / #32
-
0.2.022 Jun 2024Release notes
Open source →The performance fixes to regex-filtered definitely seem significant
enough to cut a release already, especially as they do impact
ua-parser quite dramatically (~30% performance improvement on the
bench script using DailyMotion's sample and the master regexes from
uap-core). -
0.1.117 Jun 2024Nothing published for this version
-
0.1.017 Jun 2024Nothing published for this version