3 Replies Latest reply on Aug 27, 2013 3:13 PM by StevenDayton

    Using a GREP style to find any number not starting with a 0 (zero)

    StevenDayton Level 1

      I have cobbled together a few GREPs that find numbers after commas, periods, and quotes and applies a superscript character style. Most of the time it works very well except in cases like 1,000 or 30,000 in which case the zeros after the comma ends up being superscript.

       

      I'm not sure what to do to set something up so those situations are missed or left alone. I barely understand what is going on with what I have put together from various examples I found.

       

      Here are the expressions I am using.

       

      ((?<=")\d+(?!\S))|(?<=\.)\d+(?!\S)

       

      ((?<=\?)\d+(?!\S))

       

      ((?<=\,)\d+(?!\S))

       

       

      Is this even possible and if so how?

       

      Thanks for any help anyone can give.