10 Replies Latest reply on Aug 31, 2016 12:20 PM by Obi-wan Kenobi

    Advanced find and format/replace question

    joshh44287669

      Hello,


      I have a document that has over 2000 occurrences of "CHAPTER X" i.e. CHAPTER 1, CHAPTER 29, CHAPTER 30, etc.

       

      I need to apply a character style for the purpose of running headers.

       

      The issue I have is, I only want to apply the character style to the "number", NOT the whole phrase "CHAPTER X"

       

      I am using the grep rule of CHAPTER \d+ at the moment, which works great to find everything, however, it applies the character rule to the whole phrase.

       

      If it's not possible to do it that way, is it possible to truncate the word "CHAPTER" from the running header and instead display the number only? i.e. instead of CHAPTER 12, it will just display 12.

       

      Thanks soo much.