Let's say have a string...
String myString = "my*big*string*needs*parsing";
All I want is to get an split the string into "my" , "big" , "string", etc. So I try
myString.split("*");
returns java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*
is a special character in regex so I try escaping....
myString.split("\\*");
same exception. I figured someone would know a quick solution. Thanks.