I was trying to split a string based on multiple delimiters by referring How split a string in jquery with multiple strings as separator
Since multiple delimiters I
This is because characters like + and * have special meaning in Regex.
+
*
Change your join from | to |\ and you should be fine, escaping the literals.
|
|\