I would like to split a String by " | " in Java. I found split method of String class and it expects a regex expression for split delimeter but I don't know how to form a regex expression for " | ".
For example, a string is "AA | BB | CC" and I would like to get only AA, BB and CC as a string array.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…