Hacker GitHub

← All repos

ocaml/ocaml-re

View on GitHub ↗ ★ 260 OCaml

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

5 mentions on Hacker News by 3 people: 0 stories, 5 comments · first 2014-11-17 · latest 2023-03-07

Mentions per year 5 mentions · busiest year 2014 (1)
20082026
  1. …to (lazily or not) build a NFA using derivatives as well (with Antimirov's construction). [1]: https://github.com/ocaml/ocaml-re/
  2. …e.g. "str some_string" vs. "/#{Regexp.escape(some_string)}/" (to borrow Ruby's syntax). [1] https://github.com/ocaml/ocaml-re
  3. …operators are normal functions of the language, typechecking and completion works, etc. [1]: https://github.com/ocaml/ocaml-re [2]: https://github.com/ocaml/ocaml-re/blob/master/benchmarks/ben... [3]: https://github.com/Drup/tyre
  4. …tuples/lists/records, tyre will do that for you (and handle conversion failures cleanly). [1]: https://github.com/ocaml/ocaml-re/blob/master/lib/re.mli#L20...
    comment by Drup · 2016-08-15 · in Tyre – Typed regular expressions
  5. The ocaml-re module linked in this article is a neat read. A PCRE parser in ~200 lines: https://github.com/ocaml/ocaml-re/blob/master/lib/re_perl.ml
    comment by ihnorton · 2014-11-17 · in Regular Expressions in OCaml