Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val regexp : 'a t -> Re.re
Forget the pattern type and obtain the lower implementation by Re
val exec_exn : 'a t -> ?pos:int -> string -> 'a
Type enriched version of Re_pcre.exec
. It may raise an exception
val exec : 'a t -> ?pos:int -> string -> 'a option
Type enriched version of Re_pcre.exec
. It may raise an exception
module Infix : sig ... end
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
val split : 'a t -> string -> string list
Same as Re_pcre.split
val build_case : 'a t -> ('a -> 'b) -> string -> 'b option
build_case t f s
, if s
matches with t
, runs fun x -> Some (f x)
over the result.
Composition of cases created by build_case
module Literal : sig ... end
You have to open Ppx_orakuda.Re_regexp.Literal
to use {m|regexp|m}
and {s|regexp|s}
for Re_regexp.t