For two sample strings in variable temp such as these:
(1) \"|RYVG|111|9|\" (2) \"|RYVG|111||9|\"
I want to do the following:
StringUtils split method considers the consecutive delimiters as one delimiter.
StringUtils
org.apache.commons.lang.StringUtils.split("|");