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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to