If only more problems were like this ... life wouldn't be such a dog !

print DATA.read.gsub(/the +dog/,'and this')
__END__
to you the dog
to that the dog
was to the dog
and you the dog
you and the dog
and that the dog
and he the dog
he and the dog
and was the dog

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