module Re_pcre:sig..end
Pcre.full_splittyperegexp =Re.re
typeflag =[ `ANCHORED | `CASELESS | `MULTILINE ]
typegroups =Re.groups
type split_result =
| |
Text of |
(* |
Text part of splitted string
| *) |
| |
Delim of |
(* |
Delimiter part of splitted string
| *) |
| |
Group of |
(* |
Subgroup of matched delimiter (subgroup_nr, subgroup_str)
| *) |
| |
NoGroup |
(* |
Unmatched subgroup
| *) |
Pcre.full_splitval re : ?flags:flag list -> string -> Re.tre ~flags s creates the regexp s using the pcre syntax.val regexp : ?flags:flag list -> string -> regexpre ~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 exec : rex:regexp -> ?pos:int -> string -> groupsRe.exec.val get_substring : groups -> int -> stringRe.Group.get.val get_substring_ofs : groups -> int -> int * intRe.Group.offset.val pmatch : rex:regexp -> string -> boolRe.execp.val substitute : rex:Re.re -> subst:(string -> string) -> string -> string
val full_split : ?max:int -> rex:regexp -> string -> split_result list
val split : rex:regexp -> string -> string list
val quote : string -> stringtypesubstrings =Re.groups