Re_pcreinclude module type of struct include Re.Pcre endtype split_result = Re.Pcre.split_result = Result of a Pcre.full_split
val re :
?flags:flag list ->
string ->
(Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen @@ portablere ~flags s creates the regexp s using the pcre syntax.
re ~flags s compiles the regexp s using the pcre syntax.
val extract : rex:regexp -> string -> string array @@ portableextract ~rex s executes rex on s and returns the matching groups.
val get_substring : groups -> int -> string @@ portableEquivalent to Core.Group.get.
val names : regexp -> string array @@ portableReturn the names of named groups.
Return the first matched named group, or raise Not_found. Prefer to use the non-raising version get_named_substring_opt
Return the first matched named group, or raise Not_found.
val get_substring_ofs : groups -> int -> int * int @@ portableEquivalent to Core.Group.offset.
val pmatch : rex:regexp -> string -> bool @@ portableEquivalent to Core.execp.
val full_split :
?max:int ->
rex:regexp ->
string ->
split_result list @@ portableval split : rex:regexp -> string -> string list @@ portable