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.5.2.tbz
sha256=19c4401c43e7c4d3e5cac21c8c19cfe36d1314777703f3bdbe90d3bd1762a69f
sha512=9a1de0be0b4f0d9a214f3be285ecdea954c30d0003ef4dbec76a0c8c8b6e61bc3be415252ed924386d0b65b7c7e28132689045e00d98c4147d21d29c6dbbd679
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: 14 Jul 2026
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page