package re
RE is a regular expression library for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
1.7.1.tar.gz
sha256=eb18382d63459b0a4065315ce6fef854bc99152aec2b557bb8a43e664e6679e8
md5=0e45743512b7ab5e6b175f955dc72002
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