You can specify to apply the pattern as often as possible with:
String[] de = data.split(";", -1);
See the Javadoc for the split method taking two arguments for details.
More Related Contents:
- How can I split string fastly in Java? [closed]
- Java String split removed empty values
- Split Java String by New Line
- How to split a String by space
- Scanner vs. StringTokenizer vs. String.Split
- Splitting on comma outside quotes
- Java string split with “.” (dot) [duplicate]
- Splitting a string at every n-th character
- Why is StringTokenizer deprecated?
- How to split a string in Java
- string to string array conversion in java
- How to split String with some separator but without removing that separator in Java? [duplicate]
- Split a string, at every nth position
- Java String.split() sometimes giving blank strings
- Tokenizing Error: java.util.regex.PatternSyntaxException, dangling metacharacter ‘*’
- Understanding regex in Java: split(“\t”) vs split(“\\t”) – when do they both work, and when should they be used
- How to Split a mathematical expression on operators as delimiters, while keeping them in the result?
- Split the string on forward slash
- Java split on ^ (caret?) not working, is this a special character?
- Can you use zero-width matching regex in String split?
- Java split is eating my characters
- Splitting a csv file with quotes as text-delimiter using String.split()
- A method to reverse effect of java String.split()? [duplicate]
- Java split String performances
- split string only on first instance – java
- Split string with | separator in java
- Split string into repeated characters
- How can split a string which contains only delimiter?
- Java’s Scanner vs String.split() vs StringTokenizer; which should I use?
- Java replace all square brackets in a string