On Sep 13, 2005, at 12:31 AM, Robert Klemme wrote:
> #strip
> gsub /[ab]+/, ''

Isn't #strip for leading/trailing only? (A combined lstrip and  
rstrip, if you will.)

So:
gsub /^[ab]+|[ab]+$/, ''