2 Replies Latest reply on Oct 22, 2014 4:25 PM by mosheyri

    How to replace spaces before and after a word with tabs using GREP and/or Find-Replace

    mosheyri Level 1

      Here's the scenario:

      I have a paragraph with spaces (can have 1 or more) at the beginning (before the first word) and a single space after the first word (happens to be a number, if that matters - which can be a single digit or more).

      I'm looking to replace the spaces before each paragraph with a single tab and replace the space after the first word (number) with a single tab as well. In addition, I want to apply a certain paragraph style to it.

      Thanks much in advance for anyone that can come up with a solution. It sounds like a GREP solution of some sort but can't nail it. Thanks.