I've a variable of type String.
String a = "<html><head><title></title></head><body> ${member.activation_date} ${member.activationdate} </body></html>";
Now I want to fetch all the words starting with the $ and ending with a, I have a regular expression which works like a charm (\$\{\w+\.\w+\})
but is there any other better way to do so which can save me the second \w to make it efficient.