I have string with multiple {!XXX}
phrases. For example:
String sTemp = 'Kumar gaurav {!str1} is just {!str2}, adasdas {!str3}';
I need to replace all {!str}
values with corresponding str
, How to build replace all {!str}
to str
?
I have string with multiple {!XXX}
phrases. For example:
String sTemp = 'Kumar gaurav {!str1} is just {!str2}, adasdas {!str3}';
I need to replace all {!str}
values with corresponding str
, How to build replace all {!str}
to str
?
Best Answer
You can try using replaceall method by passing a regular expression to the method.