Suppose I have String str="Hello $everybody$. How $are$ you $all$";
From above string, I need to extract values everybody, are, all to a list. Note all the required values are started and ended with $. How can I do it in java?
Please help.
regards,
Working Code: