package re

  1. Overview
  2. Docs

Module Re.StreamSource

An experimental for matching a regular expression by feeding individual string chunks.

This module is not covered by semver's stability guarantee.

Sourcetype t
Sourcetype 'a feed =
  1. | Ok of 'a
  2. | No_match
Sourceval create : Re__.Compile.re -> t
Sourceval feed : t -> string -> pos:int -> len:int -> t feed
Sourceval finalize : t -> string -> pos:int -> len:int -> bool

finalize s ~pos ~len feed s from pos to len and return whether the regular expression matched.

Sourcemodule Group : sig ... end

Match a string against a regular expression with capture groups