I have a code and i want to read only the name in the code. The name is inside quotes and parenthesis. I do not care about whole code line but the name only.
CODE
document.write('john smith') // i just want to read john smith using Regex in java.
Actually, i am directly reading through URL. Some of the data i need is in Javascript code and some in other tags and attributes. If i get the solution of this above, i hope, i can handle the rest myself.