ppx_regexpversion

Matching Regular Expressions with OCaml Patterns

This syntax extension turns

match%pcre x with
| {|re1|} -> e1
...
| {|reN|} -> eN
| _ -> e0

into suitable invocations to the ocaml-re library. The patterns are plain strings of the form accepted by Re_pcre, except groups can be bound to variables using the syntax (?<var>...). The type of var will be string if a match is of the groups is guaranteed given a match of the whole pattern, and string option if the variable is bound to or nested below an optionally matched group.

AuthorPetter A. Urkedal <paurkedal@gmail.com>
LicenseLGPL-3.0-only WITH OCaml-LGPL-linking-exception
Published
Homepagehttps://github.com/paurkedal/ppx_regexp
Issue Trackerhttps://github.com/paurkedal/ppx_regexp/issues
Maintainerpaurkedal@gmail.com
Dependencies
Source [http] https://github.com/paurkedal/ppx_regexp/releases/download/v0.3.0/ppx_regexp-0.3.0.tbz
sha256=b7d33f39648c52c70ec1dc788be6ac2664d78721d9c602cd7771ad6a49e7822d
md5=6d5b91fb26530d1e08fd3f160855b8a1
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ppx_regexp/ppx_regexp.0.3.0/opam
No package is dependent