commons
Regexp_engine
commons.tests
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) *
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) *
val remove_end_of_string_assertions : t -> t option
val remove_end_of_string_assertions_from_string : string -> string option