Suppose I have a String, called text, which contains the following :
blabla="A_VALUE"
Is it possible, with pattern matching, to directly retrieve the value inside the quotation marks?
For example : something similar to Format String, where you could write a pattern, %s, and then get that value.
Right now, a workaround I found is :
text = text.replace("blabla=","");
text = text.replaceAll("\"","");
However, this is very ugly.
Note : It doesn't have to be java, I want to know if the concept exists, and if so, what name does it have.
This post offers some insight, although I'm unsure what \\\\#\\s*(\\S+?)\\s*
is suppose to mean