Timeline for Replace new line character in textArea field in Apex
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 5, 2015 at 3:48 | review | Suggested edits | |||
Jan 5, 2015 at 5:01 | |||||
Aug 8, 2014 at 11:46 | vote | accept | SF_user | ||
Aug 8, 2014 at 11:16 | comment | added | user254875486 |
If you run them all (with \r\n first) you're sure every possibility will be replaced. You can also use the replaceAll() function, that gets a regular expression as a first argument, so you can reduce this to one line. (see salesforce.com/us/developer/docs/dbcom_apex250/Content/…)
|
|
Aug 8, 2014 at 11:13 | comment | added | SF_user | You mean I need to call this three methods on a row ? I used the methods I listed in my post one by one. I'll try. | |
Aug 8, 2014 at 11:09 | history | answered | user254875486 | CC BY-SA 3.0 |