package re
RE is a regular expression library for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
ocaml-re-1.5.0.tar.gz
sha256=53322f763a8d771a68f986c9c323cab7d3afa56873c3eefa528fb92b1b511dd3
md5=1e9bff3279648881be31e5ff96219f0a
doc/re.pcre/Re_pcre/index.html
Module Re_pcre
type regexp = Re.re
type groups = Re.groups
re ~flags s
compiles the regexp s
using the pcre syntax.
val extract : rex:regexp -> string -> string array
extract ~rex s
executes rex
on s
and returns the matching groups.
val get_substring : groups -> int -> string
Equivalent to Re.Group.get
.
val get_substring_ofs : groups -> int -> int * int
Equivalent to Re.Group.offset
.
val substitute : rex:Re.re -> subst:(string -> string) -> string -> string
val full_split : ?max:int -> rex:regexp -> string -> split_result list
val split : rex:regexp -> string -> string list
Deprecated
type substrings = Re.groups
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page