From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA28261; Tue, 14 Sep 2004 12:06:16 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA28615 for ; Tue, 14 Sep 2004 12:06:15 +0200 (MET DST) Received: from mta1.cl.cam.ac.uk (mta1.cl.cam.ac.uk [128.232.0.15]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i8EA6Fcq023952 for ; Tue, 14 Sep 2004 12:06:15 +0200 Received: from zonule.cl.cam.ac.uk ([128.232.9.23] helo=cl.cam.ac.uk ident=[JE1uSa5ZQBPJuGSskkF+lw5d8dI4I5Pt]) by mta1.cl.cam.ac.uk with esmtp (Exim 3.092 #1) id 1C7ACR-0008Nu-00; Tue, 14 Sep 2004 11:06:11 +0100 X-Mailer: exmh version 2.6.3-CL 04/04/2003 with nmh-1.0.4 X-Exmh-Isig-CompType: repl X-Exmh-Isig-Folder: cslists/caml To: Erik de Castro Lopo cc: caml-list@inria.fr Subject: Re: [Caml-list] Str broken In-reply-to: Your message of "Tue, 14 Sep 2004 19:42:02 +1000." <20040914194202.6aeb3124.ocaml-erikd@mega-nerd.com> Mime-Version: 1.0 Content-Type: text/plain Date: Tue, 14 Sep 2004 11:06:10 +0100 From: Keith Wansbrough Message-Id: X-Miltered: at nez-perce with ID 4146C297.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 sourceforge:01 3.07:01 regexps:01 ocaml:01 ocaml:01 supported:01 emacs:01 emacs:01 sep:01 syntax:02 constructs:02 comparison:02 inclusion:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Erik wrote: > On 14 Sep 2004 19:26:59 +1000 > skaller wrote: > > > The Str module seems not to work: [..] > > let re = "(a\\|b)*abb" [..] > I'm using 3.07+2 here. The code you posted produced a warning for > me. It seems that for ocaml some extra escaping is required in > comparison with other languages. The documentation says "The syntax for regular expressions is the same as in Gnu Emacs." (sec 22.1). My emacs documentation (v21.2.1) says about regexps: > The special characters are `$', `^', `.', `*', `+', `?', > `[', `]' and `\'. Any other character appearing in a regular > expression is ordinary, unless a `\' precedes it. This is similar to GNU grep (basic) regular expressions, except for the inclusion of '?', and the exclusion of character classes. It's not clear from the documentation whether the other Emacs constructs not listed in the OCaml manual entry are supported, e.g. \(?: ... \), \`, \B, \<, etc. --KW 8-) ------------------- 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