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: IKEDA Katsumi <ikeda@m...>
Subject: Re: [Caml-list] Does any current ocaml program understand the {n1,n2} regexp syntax?
Hi,

From: Stalkern 2 <stalkern2@tin.it>
Message-ID: <200211111715.22699.stalkern2@tin.it>
> 
>         # Str.string_match (Str.regexp "y{3,}") "yyy" 0;;
>         - : bool = false
> 

See http://caml.inria.fr/ocaml/htmlman/libref/Str.html.

The syntax for regular expressions is the same as in Gnu Emacs.
                                                     ^^^^^^^^^ not Perl
regard,

-- 
IKEDA Katsumi  <ikeda@msi.co.jp>
-------------------
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