Hi,
I have a
string pattern like this: (--Select--)|(word1)|(word2)|(word3), it can has more or less
word, for example:
I want to get the "word" and put them in a String[], desired result would be like pattern[0] = --select--, pattern[1] = Business, pattern[2]= Personal, I tried String.replace and String.split to get rid of "|, (, )", but did not work out. When I used
, in stead of getting (--Select--), (Business) and (Personal), I got 35 strings. Please help to figure out how to solve this.
Thanks!