s/^\s+//, s/\s+$// for $string; [download]
In reply to Re: regexp problem by secret in thread regexp problem by jeanluca