[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-09-14 (10:06) |
From: | Keith Wansbrough <Keith.Wansbrough@c...> |
Subject: | Re: [Caml-list] Str broken |
Erik wrote: > On 14 Sep 2004 19:26:59 +1000 > skaller <skaller@users.sourceforge.net> 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