<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2005/05/eb071e51b74168a16837e0b94c090d7a"
  from="Eliot Handelman &lt;eliot@g...&gt;"
  author="Eliot Handelman"
  date="2005-05-03T23:44:27"
  subject="regexp bug?"
  prev="2005/05/d315d238ef80ffa3e6f6bd7774cd1fbd"
  next="2005/05/6b04d7fc06df9f60408dca2680cb0501"
  next-in-thread="2005/05/6b04d7fc06df9f60408dca2680cb0501"
  prev-thread="2005/05/b08ba41a8af39c81581e67c0615afd28"
  next-thread="2005/05/ed27a45e7c68868f7f6178d7f035d421"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="regexp bug?">
<msg 
  url="2005/05/eb071e51b74168a16837e0b94c090d7a"
  from="Eliot Handelman &lt;eliot@g...&gt;"
  author="Eliot Handelman"
  date="2005-05-03T23:44:27"
  subject="regexp bug?">
<msg 
  url="2005/05/6b04d7fc06df9f60408dca2680cb0501"
  from="Hal Daume III &lt;hdaume@I...&gt;"
  author="Hal Daume III"
  date="2005-05-03T23:57:52"
  subject="Re: [Caml-list] regexp bug?">
<msg 
  url="2005/05/81d5e441fedb0cc10a31a8d898ce6284"
  from="Eliot Handelman &lt;eliot@g...&gt;"
  author="Eliot Handelman"
  date="2005-05-04T02:46:24"
  subject="Re: [Caml-list] regexp bug?">
</msg>
</msg>
<msg 
  url="2005/05/ba470fc2e7e38c9ca3b3647f712ed279"
  from="Jason Hickey &lt;jyh@c...&gt;"
  author="Jason Hickey"
  date="2005-05-04T02:31:15"
  subject="Re: [Caml-list] regexp bug?">
</msg>
</msg>
</thread>

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

</contents>

</message>

