ocaml-re

Pure OCaml regular expressions, with support for Perl and POSIX-style strings (by ocaml)

Ocaml-re Alternatives

Similar projects and alternatives to ocaml-re

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better ocaml-re alternative or higher similarity.

ocaml-re reviews and mentions

Posts with mentions or reviews of ocaml-re. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-07.
  • Show HN: Regex Derivatives (Brzozowski Derivatives)
    10 projects | news.ycombinator.com | 7 Mar 2023
    Note that it's not difficult to (lazily or not) build a NFA using derivatives as well (with Antimirov's construction).

    [1]: https://github.com/ocaml/ocaml-re/

  • Super-expressive – Write regex in natural language
    4 projects | news.ycombinator.com | 21 Jan 2021
    I'm familiar with standard (compact) regex syntax, but I've been using the above syntax recently in a couple small places. I'm a bit on the fence as to which is "better". The compact syntax is, of course, more compact. I think it's a very similar comparison between APL (which I've not used) and most other common programming languages.

    One advantage of the expanded syntax is that it's a bit nicer to incorporate a string variable, e.g. "str some_string" vs. "/#{Regexp.escape(some_string)}/" (to borrow Ruby's syntax).

    [1] https://github.com/ocaml/ocaml-re

Stats

Basic ocaml-re repo stats
2
231
8.6
10 days ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com