I want to replace $ {crane_error.aac} ...">

Eclipse regular expression

new here. I have 4300 instances:

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

I want to replace

$ {crane_error.aac}

Not sure how to format this in search / replace field in eclipse

Thanx

+3
source share
4 answers

The search expression should look like this:

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

Replace the expression should look like this:

\$\{crane_error.aac\}

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

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

And just replace it with:

$1
+3
source

With crtl-f you get the find / replace dialog. To do this, you do not even need a regular expression, you can simply copy the values ​​into the appropriate fields.

change

In this case, you want to use regexp as follows:

To find: <c:out value=\"\$\{(.*)\}\" />

Replaced by: \${$1}

+1
source

ctrl + f, . , , . " ".

0
source
  • Ctrl + H
  • Without any regular expressions
  • Just replace the string with $ {crane_error.aac}

You don't need regular expressions here.

0
source

All Articles