我正在使用 Java 正则表达式。我有一个字符串如下
String s = "the location is at {emp.address.street} with the name {emp.name},{emp.surname}";
对于上述字符串,s.replaceAll( "\\{(.*?)\\}", "" )
返回以下字符串:
the location is at with the name ,
现在我想将其反转以获得以下结果:
{emp.address.street}{emp.name}{emp.surname}