• 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: Frontbase CLOB newline problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frontbase CLOB newline problem


  • Subject: Re: Frontbase CLOB newline problem
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 12 Nov 2008 12:09:50 -0500

String comments = aListing.additionalComments().replaceAll("(\r\n| \r)", "\\\\n");

To achieve what lachlan was aiming for, ie. replace \r, \r\n or \n with the string '\' + 'n', you would still need to match the \n case.
Oh, my bad ... he's actually ESCAPING it, not replacing with \n ... That's what I get for popping in on the last message in a chain and being sloppy. I'm going to go back to programming now :)

ms

_______________________________________________
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: 
 >Frontbase CLOB newline problem (From: Awbrey Hughlett <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Richard Stephens <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Awbrey Hughlett <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Q <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Awbrey Hughlett <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Lachlan Deck <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Q <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Mike Schrag <email@hidden>)
 >Re: Frontbase CLOB newline problem (From: Q <email@hidden>)

  • Prev by Date: Re: Frontbase CLOB newline problem
  • Next by Date: com.webobjects.foundation.NSData vs. Cocoa NSData
  • Previous by thread: Re: Frontbase CLOB newline problem
  • Next by thread: Re: Frontbase CLOB newline problem
  • Index(es):
    • Date
    • Thread