5 Replies Latest reply on Apr 7, 2017 4:56 PM by soundman1963

    Help With Grep Positive Look Behind

    soundman1963 Level 1

      Windows 10 64 bit, InD CC 2107

       

      I'm working on an ePUB doc and I have to find a tab character within a specific, yet consistent text pattern and swap the tab for a space character. It always starts at the beginning of a paragraph, with a digit followed by a period mark. It may include some repetition of these characters like so:

       

      3.4.1.4.5 tab more alpha text

       

      I start my Grep like this just to see if it's working:

       

      ^\d\.[\d\.]*\t

       

      which it does.

      But when I try to load everything but the tab character into Positive Look Behind, but it doesn't find the tab:

       

      (?<=^\d\.[\d\.]*)\t

       

      What am I doing wrong?