I have to check the string using Regular expression:
String a = "ABC(hello) or DEF("indianbatsmen") or GHK(welcome);
Here i will have to check the field DEF has double quotes or not.
I tried with :
if(!a.contains("DEF(\"w\")")){ }
It didnt work.
Try this:
Not that this fails if your string contains escaped quotes.