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.