Skip navigation
Currently Being Moderated

GREP: finding a string close to another

Mar 3, 2013 11:24 PM

Tags: #grep

Here is an excerpt from a paragraph in my ID document:

 

xx £pe.$ u. £pa.$ yy

 

Using GREP, I should find and delete the first £ and $ signs, and then the second ones. The result should look like this:

 

xx pe. u. pa. yy

 

So I try to

 

Find

£(.+?)\$

Change

$1

 

but this is only applied to the first occurrence above, not to the second. I have no clue why this is so. Has anybody got an idea?

 

ID CS5 ME

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points