Re: [Caml-list] HELP : with regular expression

2010-12-07 Thread Ashish Agarwal
I know you're asking for a solution with Str. Since I can't help with that, let me give you the Pcre solution instead. Hopefully my explanations will make up for the lack of examples to help you start using it. pmatch is the function you care about. Ignore most of the arguments. All you need to

RE: [Caml-list] help with regular expression

2010-12-06 Thread David Allsopp
zaid Khalid wrote: Hi Folks I want some help in writing regular expressions in Ocaml, as I know how to write it in informal way but in Ocaml syntax I can not. For example I want to write a* | (aba)* . This question would better be posted on the beginners' list -