caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Str broken
@ 2004-09-14  9:26 skaller
  2004-09-14  9:35 ` micha-1
  2004-09-14  9:42 ` Erik de Castro Lopo
  0 siblings, 2 replies; 5+ messages in thread
From: skaller @ 2004-09-14  9:26 UTC (permalink / raw)
  To: caml-list

The Str module seems not to work:

open Str;;
let re = "(a\\|b)*abb"
let cre = regexp re
let s = "ababababb"
;;
string_match cre s 0
;;

returns false. This is the classic test from the Dragon book.
Before I post a bug report can someone confirm this result please?
I'm using: Objective Caml version 3.09+dev0 (2004-07-13)

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net



-------------------
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-14 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14  9:26 [Caml-list] Str broken skaller
2004-09-14  9:35 ` micha-1
2004-09-14 13:05   ` skaller
2004-09-14  9:42 ` Erik de Castro Lopo
2004-09-14 10:06   ` Keith Wansbrough

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).