|
is a metacharacter in regex. You’d need to escape it:
String[] value_split = rat_values.split("\\|");
More Related Contents:
- Java Variable Substitution
- Search for keywords and replace them with their abbreviations [closed]
- Want to extract values from text file using regex
- Java regex email
- Splitting on comma outside quotes
- How to use regular expressions to parse HTML in Java?
- How to split a string, but also keep the delimiters?
- Whitespace Matching Regex – Java
- Regular expression with variable number of groups?
- Is it possible to match nested brackets with a regex without using recursion or balancing groups?
- Escaping special characters in Java Regular Expressions
- java regular expression to extract content within square brackets
- How to split String with some separator but without removing that separator in Java? [duplicate]
- Java regex for support Unicode?
- What is the use of Pattern.quote method?
- Java Regex to Validate Full Name allow only Spaces and Letters
- How to escape comma and double quote at same time for CSV file?
- Tokenizing Error: java.util.regex.PatternSyntaxException, dangling metacharacter ‘*’
- How to Split a mathematical expression on operators as delimiters, while keeping them in the result?
- Simple Java regex matcher not working
- Can you use zero-width matching regex in String split?
- Use Java and RegEx to convert casing in a string
- Regex that Will Match a Java Method Declaration
- RegEx in Java: how to deal with newline
- Pattern to extract text between parenthesis
- What are the differences between perl and java regex capabilities?
- Regex search with pattern containing (?:.|\s)*? takes increasingly long time
- String.replaceAll is considerably slower than doing the job yourself
- Remove all occurrences of \ from string
- Extract ip addresses from Strings using regex