Can someone provide me the regular expression in java that will find spaces (' ') and newline/return characters ('\n') between two pipe ('|') characters. Such that I find two pipe characters that are essentially right beside each other?
Eg.
String test = " | \n\n | ";
or
String test = " | |";
For some reason, I am having a hard time figuring this out.
When i try (on top of a lot of other attempts):
Pattern.compile("|\s*|");
It doesnt seem to work... Thanks in advance guys for the reply/fix!!!
Eg.
String test = " | \n\n | ";
or
String test = " | |";
For some reason, I am having a hard time figuring this out.
When i try (on top of a lot of other attempts):
Pattern.compile("|\s*|");
It doesnt seem to work... Thanks in advance guys for the reply/fix!!!