ocaml-re

Pure OCaml regular expressions, with support for Perl and POSIX-style strings

OTHER License

Downloads
13
Stars
224
Committers
43

Bot releases are hidden (Show)

ocaml-re - 1.12.0 Latest Release

Published by rgrinberg about 2 months ago

CHANGES:

  • Add Re.split_delim (#233)
  • Fix handling of empty matches in splitting and substitution functions (#233)
  • Add support for character classes in Re.Posix (#263)
ocaml-re - 1.11.0

Published by rgrinberg about 1 year ago

CHANGES:

  • Add Re.group_count to get the number of groups in a compiled regex (#218)
  • Add Re.exec_partial_detailed to allow resuming searches from partial inputs
    (#219)
  • Re-export Re.Perl's Parse_error and Not_supported exceptions
    in Pcre (#222)
  • Add support for DOTALL flag in Re.Pcre.regexp (#225)
  • Add support for named groups (#223)
  • Add support for some control characters in Re.Perl (#227)
ocaml-re - 1.10.4

Published by rgrinberg over 2 years ago

CHANGES:

  • Improve handling of word boundaries (#179)
ocaml-re - 1.10.3

Published by rgrinberg about 3 years ago

CHANGES:

  • Glob: change optional argument ?backslash_escapes to ?match_backslashes.
    The interpretation of backslashes in the glob pattern remains unchanged with
    the new option, but forward slashes match backslashes when activated (#199)
ocaml-re - 1.10.2

Published by rgrinberg about 3 years ago

CHANGES:

  • Fix missing aliases introduced in 1.10.1
ocaml-re - 1.10.1

Published by rgrinberg about 3 years ago

CHANGES:

  • Glob: add optional argument ?backslash_escapes to control interpretation of
    backslashes (useful under Windows) (#197, #198)

  • Restore accidentally deleted *_seq deprecated aliases.

ocaml-re - 1.10.0

Published by rgrinberg about 3 years ago

CHANGES:

  • Add the [:alpha:] character class in Re.Perl (#169)
  • Double asterisk (**) in Re.Glob (#172)
    Like * but also match / characters when pathname is set.
  • Double asterisk should match 0 or more directories unless in trailing
    position. (#192, fixes #185)
ocaml-re - https://github.com/ocaml/ocaml-re/releases/tag/1.9.0

Published by rgrinberg over 5 years ago

CHANGES:

  • Fix regression in Re.exec_partial (#164)
  • Mov gen related functions to Re.Gen and deprecate the old names (#167)
  • Introduce Re.View that exposes the internal representation (#163)
ocaml-re - https://github.com/ocaml/ocaml-re/releases/tag/1.8.0

Published by rgrinberg about 6 years ago

CHANGES:

  • Fix index-out-of-bounds exception in Re.Perl.re (#160)
  • Add seq based iterators (#170)
ocaml-re - https://github.com/ocaml/ocaml-re/releases/tag/1.7.3

Published by rgrinberg over 6 years ago

1.7.3 (05-Mar-2018)

  • Remove dependency on bytes package (#155)
ocaml-re - https://github.com/ocaml/ocaml-re/releases/tag/1.7.2

Published by rgrinberg over 6 years ago

1.7.2 (01-Mar-2018)

  • Deprecate all Re_* modules. Re_x is now available as Re.X
  • Deprecate all re.x sub libraries. Those are all available as Re.X
  • Make all function in Re.Str tail recursive.
ocaml-re - Fix tests for 4.00.1

Published by rgrinberg over 9 years ago

  • Fix 4.00.1 compatibilty with tests.
ocaml-re - OCaml Re version 1.4.0

Published by rgrinberg over 9 years ago

  • Add Re.{mark,marked,mark_set}. Regexps can now be "marked" to query post
    execution if they matched.
ocaml-re - OCaml Re version 1.3.2

Published by rgrinberg over 9 years ago

  • Fix replacing 0 length matches (#55)
ocaml-re - OCaml Re version 1.3.1

Published by rgrinberg over 9 years ago

  • Rename {Cset, Automata} to {Re_cset, Re_automata}
ocaml-re - OCaml Re version 1.2.2

Published by vouillon over 10 years ago

  • Add a Re.whole_string convenience function to only match whole strings
  • Add a ?anchored parameter to functions in Re_glob to specify whole
    string matching
  • Document Re_glob module
  • Fix compilation of submatches occurring inside a Kleen star
  • Fix word boundary matching
  • Fix definition of Re.xdigit
  • Fix Re.exec_partial function
  • Fix compilation of patterns of the shape r1r2|r1r3
  • Fixed compilation of re.cmxs (Vincent Bernardoff)
  • Improved matching of anchored regular expressions: stop as soon as
    we know there cannot possibly be any match.
  • Updated to OASIS 0.4.x (Vincent Bernardoff)
  • Add the linking exception to the license