To match part after nth
occurrence of pipe you can use this regex:
/^(?:[^|]*\|){3}([^|]*)/
Here n=3
It will match 10.15.194.25
in matched group #1
More Related Contents:
- Search for keywords and replace them with their abbreviations [closed]
- Regex to match end-of-sentence markers [closed]
- Java regular expression “( *|)”: what does the pipe do? [duplicate]
- 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 between letters and digits (or between digits and letters)?
- Whitespace Matching Regex – Java
- How can non-ASCII characters be removed from a string?
- How to match string within parentheses (nested) in Java?
- Regex look-behind without obvious maximum length in Java
- Returning overlapping regular expressions
- Java; String replace (using regular expressions)?
- Cancelling a long running regex match?
- Regular expression to match a backslash followed by a quote
- Split a string, at every nth position
- 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
- removing characters of a specific unicode range from a string
- 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
- Set minimum and maximum characters in a regular expression
- Java Regex Illegal Escape Character in Character Class
- Regular expression to get an attribute from HTML tag
- Java’s Scanner vs String.split() vs StringTokenizer; which should I use?
- java regex pattern unclosed character class