In article <200306131529.h5DFTNs29165 / moulon.inra.fr>,
ts  <decoux / moulon.inra.fr> wrote:
>>>>>> "M" == Mike Stok <mike / ratdog.stok.co.uk> writes:
>
>>>> 'mike stok' =~ /^(?i-mx:mike) (?i-mx:stok)$/
>M> => nil
>
> Can you try this (1.6.8)
>
>pigeon% diff -u regex.c.old regex.c
>--- regex.c.old 2003-06-13 17:16:18.000000000 +0200
>+++ regex.c     2003-06-13 17:16:51.000000000 +0200
>@@ -1011,6 +1011,7 @@
>       break;
> 
>     case duplicate:
>+    case option_set:
>       p++;
>       break;
> 
>@@ -1036,7 +1037,6 @@
>     case push_dummy_failure:
>     case start_paren:
>     case stop_paren:
>-    case option_set:
>       break;
> 
>     case charset:

Thanks!  I did the moral equivalent to the 1.8 sources from CVS and now:

[mike@ratdog mike]$ irb --simple-prompt
>> mike = /mike/
=> /mike/
>> mike_i = /mike/i
=> /mike/i
>> 'Mike Stok' =~ /^#{mike} Stok$/
=> nil
>> 'Mike Stok' =~ /^#{mike_i} Stok$/
=> 0

This makes it much easier to build complex regular expressions :-)

Thanks again,

Mike

-- 
mike / stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       | GPG PGP Key      1024D/059913DA 
mike / exegenix.com                  | Fingerprint      0570 71CD 6790 7C28 3D60
http://www.exegenix.com/           |                  75D2 9EC4 C1C0 0599 13DA