------art_45769_4522708.1168623301349
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 1/12/07, Josselin <josselin / wanadoo.fr> wrote:
>
> I wrote the following ruby statements..  I get the result I need , I
> tried to DRY it for 2 hours without being successfull ,
>
>       d  .gsub(/\r\n/,' ')   # get rid of carriage return
>       d  .gsub(/;/,' ')  # replace column by space
>       d  .gsub(/,/,' ') # replace comma by space
>       a   .split(' ')   # split into component , space as divider
>
> tfyl
>
> Joss


I know you got lots of answers but what about

a  .gsub(/;|,/," ").split

If I am not mistaken it will work on Unix too.



HTH
Robert




-- 
"The best way to predict the future is to invent it."
- Alan Kay

------art_45769_4522708.1168623301349--