Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: fancy-regex/fancy-regex

0.15.0

06 Jul 11:23
Compare
Choose a tag to compare
Loading

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

  • Fix infinite loop when backtracking limit is hit (#153)
  • FixRegexBuilder.case_insensitive not always applying when it should. (#163)
  • Thetoy example has had various bugfixes, and unit tests added. (#152,#159)
Assets2
Loading
reubeno reacted with hooray emoji
1 person reacted

0.14.0

24 Oct 08:54
Compare
Choose a tag to compare
Loading

Added

  • Addsplit,splitn methods toRegex to split a string into substrings (#140)
  • Addcase_insensitive method toRegexBuilder to force case-insensitive mode (#132)

Changed

  • Bump bit-set dependency to 0.8 (#139)
Loading

0.13.0

22 Dec 12:38
Compare
Choose a tag to compare
Loading

Added

  • Support for relative backreferences using\k<-1> (-1 references the
    previous group) (#121)
  • Addtry_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)
Loading

0.12.0

22 Dec 12:38
Compare
Choose a tag to compare
Loading

Added

  • Support forno_std (thestd feature is enabled by default but can be
    disabled if desired) (#111)
  • TryFrom&str andString impl forRegex (#115)

Changed

  • Error and its components are nowClone (#116)
  • MSRV (minimum supported Rust version) is now 1.61.0 (from 1.42.0)
Loading

0.11.0

22 Dec 12:37
Compare
Choose a tag to compare
Loading

Added

  • Support forconditionals: using a regex like
    (?<test>a)?b(?(test)c|d) will try to matchc afterb ifa matched in the capture group named
    test, 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)
Loading

0.10.0

28 Apr 06:39
Compare
Choose a tag to compare
Loading

Added

Loading

0.9.0

21 Apr 05:48
Compare
Choose a tag to compare
Loading

Added

  • Support for\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@.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp