Hi All, I am using following java syntax for spliting a String named Code with character "|". To do that I need to prefix \\(two backslash) before that like this.. . String [] SplitedVal=Code.split("\\|");
In regex pipe means "or" just like any regex in Unix based systems and all you know...
So if we want to use pipe as separator we have to put escape sequence for that, which is "\|" and for java program you have to put one more backslash so regex really gets "\|" ...