string.replaceall() and java.util.regex.Pattern/Matcher
posted 6 years ago
i have a regex that checks if the content between the 5th and 6th occurence of | is "" as follows:
It works fine with string.replaceall(). But when same pattern is used with java.util.regex.Pattern and Matcher classes, Matcher.find() is always false. Does it mean that the above regex must not contain the match part, I tried that but in vain.
Could someone, show me as how to use the above regex in combination of Pattern and Match classes.