4 Replies Latest reply: Mar 5, 2013 3:29 AM by pkahrel RSS

    GREP: finding a string close to another

    samar02

      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