Re.PcreNOTE: Only a subset of the PCRE spec is supported
Result of a Pcre.full_split
val re :
?flags:flag list ->
string ->
(Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.genre ~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 arrayextract ~rex s executes rex on s and returns the matching groups.
val get_substring : groups -> int -> stringEquivalent to Core.Group.get.
val names : regexp -> string arrayReturn 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 * intEquivalent to Core.Group.offset.
val pmatch : rex:regexp -> string -> boolEquivalent to Core.execp.
val full_split : ?max:int -> rex:regexp -> string -> split_result listval split : rex:regexp -> string -> string list