I want to remove ${anything} or ${somethingelse} from a string, but i dont find the regex.
My actual code
String url = http://test.com/index.jsp?profil=all&value=${value}
String regex = "\\$\\{*\\}";
url = url .replaceAll(regex, ""); // expect http://test.com/index.jsp?profil=all&value=
//but it is http://test.com/index.jsp?profil=all&value=${value}
i'm sure the solution is stupid, but no way to find.