package re
RE is a regular expression library for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
1.6.0.tar.gz
sha256=5e719921bcc0a2d772b4ec2f611af708b9bc992b7f1233aa7ff389ab08c141cb
md5=e59ecd17196c1338c3bec0a50cc1d13b
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