Input String:
<#if (${val1}-${val2}) + ${f1(${a}+${b}*${c})} > 2000>ABC<#elseif ${n1}+${n2}* ${f1(${n3}-${n4})} < 500>DEF</#if>
We want to remove All ${
and }
that are present in <#if
and <#elseif
, apart from the ones that are present inside f1()
(${
associated with f1
should get removed as well). So, the expected output string is:
<#if (val1-val2) + f1(${a}+${b}*${c}) > 2000>ABC<#elseif n1+n2*f1(${n3}-${n4}) < 500>DEF</#if>