On 06-12-2010, David Allsopp <dra-n...@metastack.com> wrote: > zaid Khalid wrote: >> > >> Hint I am using (Str.regexp) > > There are other libraries (e.g. pcre-ocaml) which provide different (I > would say more powerful, rather than strictly better!) > implementations. > >
There is also syntax extension like mikmatch, that helps to write regexp in a very meaningful syntax: match str with | RE bol "a"* | "ab"* eol -> true | _ -> false http://martin.jambon.free.fr/mikmatch-manual.html http://martin.jambon.free.fr/mikmatch.html You can use pcre and str with mikmatch. Regards, Sylvain Le Gall _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs