type t = Js_of_ocaml.Regexp.regexp
val t_of_js : Ojs.t -> Js_of_ocaml.Regexp.regexp
val t_to_js : Js_of_ocaml.Regexp.regexp -> Ojs.t
type replacer =
matched:string ->
captures:string list ->
offset:int ->
string:string ->
string
val replace : string -> regexp:t -> replacer:replacer -> string