Removing Line Feeds in JavaPosted by Roger Keays, 22 January 2009, 10:18 PM |
This should be a fairly cross-platform way to remove line feeds from a string using Java:
string.replaceAll("[\r\n]", "")
Why do the smallest issues always take the longest to resolve?
| << Fluid CSS Menus and Sub-Pixel Workaround | Back to Blog | Using Enums in EL >> |
Add a comment
Please visit http://www.ninthavenue.com.au/blog/removing-line-feeds-in-java to add your comments.