= 768" x-on:close-sidebar="sidebar=window.innerWidth >= 768 && true">
Matching Regular Expressions with OCaml Patterns
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
Authors
Maintainers
Sources
ppx_regexp-0.2.0.tbz
md5=3df1f48407d5bd361e647817841eb99b
Description
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.
Published: 04 Jun 2017
Dependencies (6)
-
topkg-jbuilder
build
- ppx_tools
-
re
< "1.7.2~"
-
ocaml-migrate-parsetree
< "2.0.0"
-
jbuilder
>= "1.0+beta7"
-
ocaml
>= "4.02.3" & < "4.03.0"
Dev Dependencies
-
None
Used by
-
None
Conflicts
-
None
On This Page