Use this tag for questions about separating an item (e.g. a string) into parts, often by a delimiter or regular expression.
Why does the second line of this code throw ArrayIndexOutOfBoundsException? String filename = "D:/some folder/001.docx"; String extensionRemoved = filename.split(".")[0]; …
java regex string split indexoutofboundsexceptionI have a SQL Server 2008 R2 column containing a string which I need to split by a comma. I have …
sql sql-server tsql sql-server-2008 splitI need help with the split() method. I have the followingString: String values = "0|0|0|1|||0|1|0|||"; I need to put the values into …
java string splitIs it possible to split a string every nth character? For example, suppose I have a string containing the following: …
python string splitI am looking for a way to easily split a python list in half. So that if I have an …
python list split