Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regular expression in eclipse

Tags:

regex

eclipse

new here. I have 4300 instances of:

 <c:out value="${crane_error.aac}" />

I want to replace with

${crane_error.aac}

Not sure how to format this in the find/replace box in eclipse

Thanx

like image 473
Doc Holiday Avatar asked Sep 10 '26 09:09

Doc Holiday


1 Answers

Search expression should look like this:

<c:out value="\$\{crane_error.aac\}" />

Replace expression should look like this:

\$\{crane_error.aac\}

EDIT: To match any variable you can use the following expression:

<c:out value="(\$\{[^\}]+\})" />

And the just replace it with:

$1
like image 93
Andrey Adamovich Avatar answered Sep 12 '26 03:09

Andrey Adamovich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!