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 KAA04069; Fri, 16 Jan 2004 10:34:59 +0100 (MET) 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 KAA04058 for ; Fri, 16 Jan 2004 10:34:58 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i0G9Yv522104 for ; Fri, 16 Jan 2004 10:34:57 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1AhQNS-0006FP-00 for ; Fri, 16 Jan 2004 09:34:54 +0000 Date: Fri, 16 Jan 2004 09:34:54 +0000 To: caml-list@inria.fr Subject: Re: [Caml-list] ANNOUNCE: mod_caml 1.0.6 - includes security patch Message-ID: <20040116093454.GA23909@redhat.com> References: <20040115140324.GA3047@redhat.com> <4006AC01.F2AD2741@decis.be> <20040115154211.GA8340@redhat.com> <20040115161943.GB9541@fichte.ai.univie.ac.at> <20040115165315.GA10912@redhat.com> <6290BE91-47EB-11D8-A8F5-000393B8133A@wetware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6290BE91-47EB-11D8-A8F5-000393B8133A@wetware.com> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 2004:99 woodyatt:01 2004:99 pcre:01 freshmeat:01 type-safe:01 ltd:98 regexp:01 ocaml:01 caml:01 caml:01 patch:02 mottl:02 first-class:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Jan 15, 2004 at 10:15:30PM -0800, james woodyatt wrote: > On 15 Jan 2004, at 08:53, Richard Jones wrote: > >On Thu, Jan 15, 2004 at 05:19:44PM +0100, Markus Mottl wrote: > >>I know it looks awful, but the four backslashes in the regexp > >>pattern for re2 indeed only stand for one. They have to be escaped > >>in the OCaml-string and also for PCRE again, > >>i.e. twice. Substitution patterns use the $-sign for escaping - > >>therefore escaping only needs to be done once. > > > >Another reason to hasten the addition of regular expressions to the > >OCaml lexer, 'a la Perl! > > Doesn't the lexer already have regular expressions? I think you mean > something to make regular expressions into first-class values in the > language. I'm not sure that's necessary. Being able to write: var ~ /ab+/ and similar certainly makes string handling and simple parsing a lot easier. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment Perl4Caml lets you use any Perl library in your type-safe Objective CAML programs. http://www.merjis.com/developers/perl4caml/ ------------------- 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