sea =<<END_OF_SEA

><}}}}*>           ><}}}}*>        ><}}}}*>
       ><}}}}*>
                ><}}}}*>    ><}}}}*>
   ><}}}}*>

END_OF_SEA

fish_caught = sea.scan(%><}}}}*>)
"I got #{fish_caught.size} fish!" # => "I got 7 fish!"

Please don't overfish.

-- Fisherman

-- 
Posted via http://www.ruby-forum.com/.