module BatStr: sig
.. end
Regular expressions and high-level string processing
Author(s): Xavier Leroy (Base module), David Teller
val search : ?offset:int ->
?backwards:bool -> Str.regexp -> string -> (int * int * string) BatEnum.t
search r s
searches for all the substrings of s
matching
regular expression r
. The result is a triple start offset/end offset/
matched string.
offset
: The offset at which to start searching in the string. If
unspecified, start search at the beginning of s
.
backwards
: If false
or unspecified, search forward. Otherwise,
search backwards.