From: Simon Strandgaard Date: 2005-05-29T06:58:54+09:00 Subject: Re: cursor-0.6 On 5/28/05, Eric Mahurin wrote: [snip] > I think you'd have to rewrite it from scratch in Ruby or do > stuff in C. Like I said, Regexp is too tied to String. If it > could handle String-like objects, you might be able to do it. > Or if it would have a callback when it reached the end of the > string (or the matched failed) that might help. Unfortunately, > there isn't enough control. [snip] I have made a regexp lib where you can supply your own iterators if you have string like classes. http://rubyforge.org/frs/download.php/1311/regexp-engine-0.12.zip Maybe it has interest? -- Simon Strandgaard