For two sample strings in variable temp such as these:
(1) \"|RYVG|111|9|\" (2) \"|RYVG|111||9|\"
I want to do the following:
Add a + to match one or more instances of the pipe:
+
temp.split("\\|+");