I am using Java regex.
I have a String as follow
String s = "the location is at {emp.address.street} with the name {emp.name},{emp.surname}";
For above string, s.replaceAll( "\\{(.*?)\\}", "" ) returns the following string:
the location is at with the name ,
Now I want to inverse this to get following result:
{emp.address.street}{emp.name}{emp.surname}
This tested script works for me: