is it possible to .replaceAll() so that :
INPUT>
asd fs#{FIRST}l sdfj s#{SECOND}ijfio s#{THIRD}df o#{1}sj
OUTPUT>
asd fsFIRSTl sdfj sSECONDijfio sTHIRDdf o#{1}sj
This #\{[A-Za-z]+\} finds the whole #{aaa} but I don’t want to delete the text inside..
Of course, you can make use of
capture groups: –If you want any explanation for this, do ask. I think, the code is self-explanatory.