- revert a change regarding dependencies & features, brought with 3.2.0, which proved to be uncovenient for configuration with no default features - Fix #36
regex_if!
andbytes_regex_if!
regex_switch!
andbytes_regex_switch!
- bytes_ prefixed macros create instances of
bytes::Regex
- Fix #30
- replace macros now accept a mut closure as replacer - Fix #27
- syn dependency updated to 2.0
- the
lite
feature switches the engine toregex-lite
instead ofregex
. The whole regex|regex-lite crate is reexported underlazy_regex::regex
- regex crate upgraded to 1.9
replace!
andreplace_all!
now supports non closure replacers - Fix #19
- rustc minimal version downgraded from 1.65 to to 1.56 by popular demand
- allow building with
--no-default-features
- regex crate upgraded from 1.5 to 1.7 (minor Unicode changes)
- rustc minimal version now 1.65
- better error messages on bad regexes - thanks @necauqua
- support for bytes regexes with the
B
suffix notation - thanks @bnoctis - Fix #11
Reexpose features of the regex crate
Add the regex_replace!
macro for when you only want to replace one match
Reexports more types of the regex crates
Add the regex_replace_all!
macro to do replacements with a closure taking the right number of &str
arguments according to the number of groups in the regular expression
Add the lazy_regex!
macro returning a Lazy<Regex>
for easy use in a pub static
shared declaration.
Fix a cross compilation problem, thanks @AlephAlpha - Fix #5
Improved documentation
- regular expressions are now checked at compile time
- regex_is_match!
- regex_find!
- regex_captures!
- no more complementary import needed
- now based on once_cell instead of lazy_static
- first public release