From: "Iñaki Baz Castillo" Date: 2008-03-26T02:51:49+09:00 Subject: Clean a header Hi, I've a string like this: header = "Header : \r\n \t \r\n \t 111 aaa 2222 3333 \r\n" I need to clean it and leave as follows: "Header:111 aaa 2222 3333" The best I get is this: header.strip.gsub(/(\s*)/,"") => "Header:111aaa22223333" Obviously this is not valid since it "eats" the spaces into the header body. How could I fix it? Thanks in advance. -- Iñaki Baz Castillo