in reply to Re^4: Regular Expressions: Removing 'only' single spaces from a stringin thread Regular Expressions: Removing 'only' single spaces from a string
$string =~ s/(\S|^)\s(\S|$)/$1$2/g; [download]