Top "String-split" questions

Use this tag for questions about separating an item (e.g. a string) into parts, often by a delimiter or regular expression.

How do I split a string, breaking at a particular character?

I have this string 'john smith~123 Street~Apt 4~New York~NY~12345' Using JavaScript, what is the fastest way to …

javascript string-split
Split string by space and character as delimiter in Oracle with regexp_substr

I'm trying to split a string with regexp_subtr, but i can't make it work. So, first, i have this …

sql regex oracle string-split regexp-substr
Split string at specific character SQL-Standard

In my SQL statement I have to extract a substring from a string at the character '_'. Strings can …

string postgresql string-split sql-standards
Read .txt file line by line in Python

My .txt file looks like this: ![enter image description here][1] How can I read my txt file into a string …

python string readfile string-split
strsplit: undefined function for input type 'char'

I have a <20x1> cell array and each of them stores some data in the form of a …

arrays string matlab cell-array string-split
Java StringTokenizer, empty null tokens

I am trying to split a string into 29 tokens..... stringtokenizer won't return null tokens. I tried string.split, but I …

java string stringtokenizer string-split
How to split a string into words. Ex: "stringintowords" -> "String Into Words"?

What is the right way to split a string into words ? (string doesn't contain any spaces or punctuation marks) For …

algorithm nlp dynamic-programming string-split text-segmentation
How to split a tab-delimited string in bash script WITHOUT collapsing blanks?

I have my string in $LINE and I want $ITEMS to be the array version of this, split on single …

bash string-split tab-delimited
Tokenising a String containing empty tokens

I have a seemingly simple problem of splitting a comma separated String into tokens, whereby the output should include empty …

java string java.util.scanner stringtokenizer string-split