Module Re.PcreSource
NOTE: Only a subset of the PCRE spec is supported
Result of a Pcre.full_split
Source
val re :
?flags:Re.Pcre.flag list ->
string ->
(Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.genre ~flags s creates the regexp s using the pcre syntax.
Source
val re_result :
?flags:Re.Pcre.flag list ->
string ->
((Re__.Ast.cset, [ `Cased | `Uncased ]) Re__.Ast.gen,
[ `Not_supported | `Parse_error ])
Stdlib.resultre ~flags s compiles the regexp s using the pcre syntax.
extract ~rex s executes rex on s and returns the matching groups.
Equivalent to Core.exec.
Equivalent to Core.Group.get.
Return 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.
Equivalent to Core.Group.offset.
Equivalent to Core.execp.