Re: Getting rid of Carriage returns
Re: Getting rid of Carriage returns
- Subject: Re: Getting rid of Carriage returns
- From: Francis Labrie <email@hidden>
- Date: Thu, 23 Dec 2004 14:54:51 -0500
Hi,
Le 23 déc. 2004, à 14:46, Calven Eggert a écrit :
I have text I want to export to an Excel file. The text for a field may have carriage returns in it so I need to remove them and replace them with spaces. I’ve used StringTokenizer and then I used the Class String replace method and they both are not working for me.
Just use something like:
stringWithoutCR = stringWithCR.replaceAll("\n", "");
--
<x-tad-bigger>Francis Labrie</x-tad-bigger>
Saint-Bruno-de-Montarville, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden