El Martes, 25 de Marzo de 2008, Rob Biedenharn escribi

> irb> header  =  "Header    : \r\n \t  \r\n  \t 111 aaa 2222 3333
> \r\n"
> => "Header    : \r\n \t  \r\n  \t 111 aaa 2222 3333      \r\n"
> irb> header.strip.sub(/\s*:\s*/,':').gsub(/\s+/,' ')
> => "Header:111 aaa 2222 3333"
>
> Good enough?

No good, it's fantastic :)

Thanks a lot.


-- 
Iki Baz Castillo