• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting rid of Carriage returns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Getting rid of Carriage returns (From: Calven Eggert <email@hidden>)

  • Prev by Date: Getting rid of Carriage returns
  • Next by Date: Re: Getting rid of Carriage returns
  • Previous by thread: Getting rid of Carriage returns
  • Next by thread: Re: Getting rid of Carriage returns
  • Index(es):
    • Date
    • Thread