Rust library for regular expressions using "fancy" features like look-around and backreferences
\k<-1>
(-1 references the
previous group) (#121)try_replacen
to Regex
which returns a Result
instead of panicking
when matching errors (#130)[\A]
used to error
but now matches the same as [A]
(for compatibility with Oniguruma)(?(
(#125)(?<test>a)?b(?(test)c|d)
will try to match c
after b
if a
matched in the capture group named
test
, otherwise d
after b
if a
wasn't captured into the test
group.\G
(anchor to end of previous match): Using a regex
like \G\w
will match each letter of foo
in foo bar
but
nothing else.\K
(keep out): Using a regex like @\K\w+
will match
things like @foo
but the resulting match text will only include
foo
, keeping out the @
.