On Sat, 29 Oct 2005, James Edward Gray II wrote:

> On Oct 28, 2005, at 8:25 PM, Ara.T.Howard wrote:
>
>>> 1.  Does Ruby support \G?
>> 
>> i dunno.  but isn't perl's m//g exactly equivalent to ruby's s.scan(%r//) ?
>
> \G is a boundary assertion that matches only where the last match left off. 
> It's used in Perl's while loop style expressions, where each iteration yields 
> the next match.

yeah i know.. but this seems completely equivalent, though it might perhaps
also need anchoring....

   buf.scan(%r/ ^ ... /) do |cell|

   end



>
>> can you post the optimized re?
>
> Yes.  I have to run out right now, but I will post it at some point this 
> weekend...

great.

-a
-- 
===============================================================================
| email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| anything that contradicts experience and logic should be abandoned.
| -- h.h. the 14th dalai lama
===============================================================================