caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* regexp bug?
@ 2005-05-04  2:46 Eliot Handelman
  2005-05-03 23:56 ` [Caml-list] " Hal Daume III
  2005-05-04  2:31 ` Jason Hickey
  0 siblings, 2 replies; 4+ messages in thread
From: Eliot Handelman @ 2005-05-04  2:46 UTC (permalink / raw)
  To: caml

This doesn't seem right:


        Objective Caml version 3.08.0
open Str

let search r str =
  search_forward (regexp r) str 0;
  matched_string str;;
 
# search "[aA-zZ]+" "_test";;
- : string = "_test"

whereas:

# search "[a-zA-Z]+" "_test";;
- : string = "test"


-- eliot


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

end of thread, other threads:[~2005-05-04  2:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-04  2:46 regexp bug? Eliot Handelman
2005-05-03 23:56 ` [Caml-list] " Hal Daume III
2005-05-04  5:48   ` Eliot Handelman
2005-05-04  2:31 ` Jason Hickey

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