9 Replies Latest reply on Jun 20, 2016 8:44 AM by Eternal Warrior

    Grep style - add brackets around number


      Hi there,


      I am wondering if there is a way to use GREP styles to apply brackets around a number. I am looking for it to be a grep style (within the paragraph style) and not a find and replace.

      This will be used in an automated table of contents where the page number will be in brackets. (Is this something I can specify in TOC settings?)


      Like such:



      Chapter One     [3]

      Chapter Two     [10]

      Chapter Three  [15]


      Again, it needs to be part of the paragraph style (or TOC settigns) so the brackets are automatically applied to numbers when the associated paragraph style is used.


      Hope someone can help me out!