Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork41
Releases: fancy-regex/fancy-regex
Releases · fancy-regex/fancy-regex
0.15.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Added
- Support
\Z
- anchor to the end of the text before any trailing newlines. (#148) - Support
\O
- any character including newlines. (#158) - The parser can now parse subroutine calls and relative backreferences (but execution is still unsupported). This is preparation for future work. Some new error variants have been added for features which can be parsed but are still otherwise unsupported.
- Backreferences can now be case insensitive. (#160)
RegexBuilder
: Add options formulti_line
,ignore_whitespace
,dot_matches_new_line
(#165)
Fixed
Assets2
Uh oh!
There was an error while loading.Please reload this page.
1 person reacted
0.14.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Assets2
Uh oh!
There was an error while loading.Please reload this page.
0.13.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Added
- Support for relative backreferences using
\k<-1>
(-1 references the
previous group) (#121) - Add
try_replacen
toRegex
which returns aResult
instead of panicking
when matching errors (#130)
Changed
- Switch from regex crate to regex-automata and regex-syntax (lower level APIs)
to simplify internals (#121) - Note: Due to above change, more backtracking is done in fancy-regex itself
instead of regex-automata, and you might get aBacktrackLimitExceeded
with
some patterns that you didn't get before. You can increase the backtrack limit
usingRegexBuilder::backtrack_limit
to help with that. - Allow escaping some letters in character classes, e.g.
[\A]
used to error
but now matches the same as[A]
(for compatibility with Oniguruma) - MSRV (minimum supported Rust version) is now 1.66.1 (from 1.61.0)
Fixed
- Fix index out of bounds panic when parsing unclosed
(?(
(#125)
Assets2
Uh oh!
There was an error while loading.Please reload this page.
0.12.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Assets2
Uh oh!
There was an error while loading.Please reload this page.
0.11.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Added
- Support forconditionals: using a regex like
(?<test>a)?b(?(test)c|d)
will try to matchc
afterb
ifa
matched in the capture group namedtest
, otherwised
afterb
ifa
wasn't captured into thetest
group.
Changed
- Updated parse errors to show the position they occurred at.
Fixed
- Fix panic when backref is used within referenced group itself and
group end index is not known yet (#103)
Assets2
Uh oh!
There was an error while loading.Please reload this page.
0.10.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Added
- Support for
\G
(anchor to end of previous match): Using a regex
like\G\w
will match each letter offoo
infoo bar
but
nothing else.
Assets2
Uh oh!
There was an error while loading.Please reload this page.
0.9.0
Compare
Could not load tags
Nothing to show
{{ refName }}defaultLoading
Added
- Support for
\K
(keep out): Using a regex like@\K\w+
will match
things like@foo
but the resulting match text will only includefoo
, keeping out the@
.
Assets2
Uh oh!
There was an error while loading.Please reload this page.