package liquidsoap-lang

  1. Overview
  2. Docs
type flag = [
  1. | `i
  2. | `g
  3. | `s
  4. | `m
]
type sub = {
  1. matches : string option list;
  2. groups : (string * string) list;
}
module type T = sig ... end
include T
type t
val regexp : ?flags:flag list -> string -> t
val split : t -> string -> string list
val exec : t -> string -> sub
val test : t -> string -> bool
val substitute : t -> subst:(string -> string) -> string -> string
type regexp = < split : string -> string list ; exec : string -> sub ; test : string -> bool ; substitute : subst:(string -> string) -> string -> string >
val regexp_ref : (?flags:flag list -> string -> regexp) ref
OCaml

Innovation. Community. Security.