package ppx_regexp
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Matching Regular Expressions with OCaml Patterns
Install
dune-project
Dependency
Authors
Maintainers
Sources
ppx_regexp-v0.4.3.tbz
sha256=70cbf4495de5e8ca4aada49c4fe25c586858dade8448efef29fd2d2ea620d413
sha512=284f4b7c99125e26697f1691909fb2ba6e9d6c7fb74c6272c442bee84211486d566183db928b1bc5b3a2c385372e830cfec3e6fb3cb4184f16805bb420bc85be
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: 25 Nov 2019
Dependencies (5)
-
ppx_tools_versioned
>= "5.2.3" -
re
>= "1.7.1" -
ocaml-migrate-parsetree
>= "1.4.0" & < "2.0.0" -
dune
>= "1.11" -
ocaml
>= "4.02.3"
Dev Dependencies (1)
-
qcheck
with-test
Used by
None
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page