From: Gavin Kistner Date: 2005-09-13T22:12:00+09:00 Subject: Re: Some suggestions 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]+$/, ''