If you use quotes, you’re asking for a regular expression split. |
is the “or” character, so your regex matches nothing or nothing. So everything is split.
If you use split('|')
or split("""\|""")
you should get what you want.
Related Contents:
- Is there a function to split a string in PL/SQL?
- How to split a string into substrings of a given length? [duplicate]
- Does xslt have split() function?
- Is there a function to split a string in Oracle PL/SQL?
- T-SQL Split Word into characters
- Scala String vs java.lang.String – type inference
- Split string every nth character?
- Split a String into an array in Swift?
- Extract substring in Bash
- Split string with dot as delimiter
- How does strtok() split the string into tokens in C?
- How do I use variables in single quoted strings?
- How to split a String by space
- How to get a variable value if variable name is stored as string?
- Test whether string is a valid integer
- PHP: Split string [duplicate]
- Splitting a string into words and punctuation
- Removing html tags from a string in R
- How to use java.String.format in Scala?
- Reading a text file and splitting it into single words in python
- Reading a file line by line in Go
- How to return a string value from a Bash function
- Split string into array of characters?
- Split a string into an array of strings based on a delimiter
- How do I use hexadecimal color strings in Flutter?
- Splitting on last delimiter in Python string?
- What does “`str` does not have a constant size known at compile-time” mean, and what’s the simplest way to fix it?
- Generate random alphanumeric string in Swift
- How do I concatenate strings?
- Convert specified column in a multi-line string into single comma-separated line
- How do I concatenate strings in Swift?
- Insert a character at a specific location in a string
- Compare version strings in groovy
- How to search a string in multiple files and return the names of files in Powershell?
- How to convert “Index” to type “Int” in Swift?
- split a string on newlines in .NET
- Implementing String.Format() in VB6
- Convert list of strings to dictionary
- Java split string to array [duplicate]
- Java: String split(): I want it to include the empty strings at the end [duplicate]
- Convert time.Time to string
- splitting a string based on multiple char delimiters
- How can I sort a list of strings in Dart?
- How to use stringByAddingPercentEncodingWithAllowedCharacters() for a URL in Swift 2.0
- Algorithm to find articles with similar text
- How can I use a dynamic format string with the format! macro?
- Jaro–Winkler distance algorithm in C#
- How can I prevent a string argument changing from null to empty when bound to a parameter?
- How to count the number of lines of a string in javascript
- Test for empty string with X”” [duplicate]