4 Replies Latest reply on Jan 22, 2014 4:36 AM by Peter Stnsz

    Removing trailing spaces once again

    Peter Stnsz Level 1

      Hello everyone!

       

      I am trying to write a GREP that will allow me to remove trailing spaces the correct way. My job require to use break characters between paragraphs (these returns are Para Spaces with applied style 'global leading').

       

       

      So far I wrote this:

      (?!~b)\s+(?<=$)

       

      The result is satisfactory, I want be able to remove any invisible characters (spaces) at the end of paragraph but exclude this last breaking character (when I hit 'change' next return unfortunately is also removed):

      Screen Shot 2014-01-22 at 12.08.55.png

       

      However I've managed to exclude the ~b wih the GREP that will remove any spaces in the first line of the paragraph.

       

       

      (?<=^)(?!~b)\s+

      Screen Shot 2014-01-22 at 12.10.08.png

       

      Any ideas?

       

      Regards

      Peter