Is there a regex to replace the outer part of a string while keeping the inner part?
before:
${person.dog.name}
after:
<c:out value="${person.dog.name}"/>
I need to use it in Eclipse editor, and the inner part changes.
This can be useful too:
Search: \$\{(.*?)\}
Replace:\$\{fn:escapeXml\($1\)\}
${person.dog.name}
become
${fn:escapeXml(person.dog.name)}