Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Does any current ocaml program understand the {n1,n2} regexp syntax?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stalkern 2 <stalkern2@t...>
Subject: [Caml-list] Does any current ocaml program understand the {n1,n2} regexp syntax?
Hello to everybody

I went and used Str.regexp, but it seems that it does not use things like the 
{ } notation, i.e. {<minimum number of occurrences>, <maximum number of 
occurrences>}


        # Str.string_match (Str.regexp "y{3,}") "yyy" 0;;
        - : bool = false

What should I use then? PCRE, Vouillon's RE (BTW, where can I find this), 
anything else?

Thank you
Ernesto
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners