regular expressions and streams

"Hendrik Boom [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
Is there an already existing way to match a regular expression with a 
stream of 
characters?

I'd like to receivea success/failure indication, the string matched, 
and, of course, the stream advanced to the next character after the 
string on success and unchanged on failure.

I could improvise something, but why reinvent the wheel?

-- hendrik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.