package re

  1. Overview
  2. Docs
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/Re/Group/index.html

Module Re.Group

Manipulate matching groups.

type t = groups

Information about groups in a match.

val get : t -> int -> string

Raise Not_found if the group did not match

val offset : t -> int -> int * int

Raise Not_found if the group did not match

val start : t -> int -> int

Return the start of the match. Raise Not_found if the group did not match.

val stop : t -> int -> int

Return the end of the match. Raise Not_found if the group did not match.

val all : t -> string array

Return the empty string for each group which did not match

val all_offset : t -> (int * int) array

Return (-1,-1) for each group which did not match

val test : t -> int -> bool

Test whether a group matched

OCaml

Innovation. Community. Security.