From: ts Date: 2003-11-19T23:01:50+09:00 Subject: Re: $& write-protected? >>>>> "S" == Simon Strandgaard writes: S> I want my regexp engine to be compatible with Ruby's, therefore I want to S> exercise the engine with the Rubicon testsuite. But rubicon uses $& and S> $1-$9. I can substitute all occurencies of $& and $1-$9 in rubicon. Be carefull with this test : it was designed for the *current* regexp engine, this means, for example, that these tests must be modified for Onigurama. Because Oniguruma will give different results. S> [RCR] remove write-protection of $&, $1-$9, $', $`, $+ No need for this : just write an C extension which do this, and use this extension *only* for testing your regexp engine. Nobody, except you, need to modify these variables. Guy Decoux