My Thoughts: Dangling meta character '?' near index 0 ? ^

Tuesday, March 20

Dangling meta character '?' near index 0 ? ^

Hey ,

After a long long time writing my post again.:)

Did you ever see the error message like this when you run your script

"Dangling meta character '?' near index 0 ? ^"

I happened to see this when I have below piece of code :
String str[]=page.split("?");


And the solution is very simple
String str[]=page.split("\\?");

Have a Good Day ..!!

1 comment:

  1. Thanks for the tip, Vamshi! Was beating my head against the wall on this one.

    ReplyDelete