How To Split Java String By Newlines

    Date: 07/19/07 (Java Web)    Keywords: web

    Splitting a String by newline is a common requirement. When processing textual data from files or from web we need to split the data by newline boundaries. The solution aren’t hard either. Let’s see a simple one liner solution using String.split(). String[] poList = pos.split("\r\n|\r|\n"); What did I do? I am splitting the String based on a regular [...]

    Source: http://blog.taragana.com/index.php/archive/how-to-split-java-string-by-newlines/

« Tip: How To Extend HSQLDB... || Java Runtime.Exec() Guide »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home