package ppx_orakuda

  1. Overview
  2. Docs
class virtual group : (string * int) list -> left:string -> right:string -> last:string option -> string option array -> object ... end

group object to access matched groups

val create : string -> flags:Re_pcre.flag list -> (left:string -> right:string -> last:string option -> string option array -> 'a) -> 'a t
val replace : 'a t -> templ:string -> ?pos:int -> string -> string

Type enriched version of Re_pcre.replace

val replace_first : 'a t -> templ:string -> ?pos:int -> string -> string

Type enriched version of Re_pcre.replace_first

val substitute_substrings : ('a -> string) -> 'a t -> ?pos:int -> string -> string

Same as Regexp.substitute_substrings but using Re_pcre

val substitute_substrings_first : ('a -> string) -> 'a t -> ?pos:int -> string -> string

Same as Regexp.substitute_substrings_first but using Re_pcre