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
20082026
-
…to (lazily or not) build a NFA using derivatives as well (with Antimirov's construction). [1]: https://github.com/ocaml/ocaml-re/
comment by Drup · 2023-03-07 · in Show HN: Regex Derivatives (Brzozowski Derivatives) -
…e.g. "str some_string" vs. "/#{Regexp.escape(some_string)}/" (to borrow Ruby's syntax). [1] https://github.com/ocaml/ocaml-re
comment by pmahoney · 2021-01-21 · in Super-expressive – Write regex in natural language -
…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
comment by Drup · 2018-11-28 · in ECMAScript regular expressions are getting better (2017) -
…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 -
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