package commons

  1. Overview
  2. Docs
type t
val pcre_pattern : t -> string
val pcre_regexp : t -> Pcre.regexp
val show : t -> string
val equal : t -> t -> bool
val pp : Format.formatter -> t -> unit
val matching_exact_string : string -> t
val matching_exact_word : string -> t
val pcre_compile : string -> t
val anchored_match : ?on_error:bool -> t -> string -> bool

Match the pattern at the beginning of the string (anchored match) *

  • parameter on_error

    is the value to return in case we encounter a PCRE error.

val unanchored_match : ?on_error:bool -> t -> string -> bool

Match the pattern at any position in the string (unanchored match) *

  • parameter on_error

    is the value to return in case we encounter a PCRE error.

val remove_end_of_string_assertions : t -> t option
val remove_end_of_string_assertions_from_string : string -> string option
OCaml

Innovation. Community. Security.