Regex Java String Split by Asterisk
java, regex, split, string
Solution
`*` has special meaning in regular expressions. You have to escape it.
line.split("\\*");
Problem
Help is needed. ``` line.split("*"); ``` I used this line of code to split a string into an asterisk mark. However, I got an error from my compiler. It says, "INVALID REGULAR EXPRESSION: DANGLING META CHARACTER '*'" How to resolve this problem? Thanks in advance.