Help with GREP expression

Learn / Forums / General InDesign Topics / Help with GREP expression

Viewing 2 reply threads
  • Author
    Posts
    • #71186
      Mimi Broeske
      Participant

      0 (0.0%) 1 6.7% 2 15.4%

      I have a huge number of tables that I have had to import from FluidSurveys into excel and then into Indesign. The problem is that the cell has lost its formatting.

      I need to be able to do a find/replace for the following (each number group is a separate cell (i.e. 0 (0.0%) is one cell):
      0 0.0% 1 6.7% 2 15.4% needs to be
      0 (0.0%) 1 (6.7%) 2 (15.4%)

      I was able to write the one for the one with only zeros but can’t seem to get the one with the different numbers. Any suggestions would be great!

    • #71194
      Aaron Troia
      Participant

      Just off the top of my head, this should work though

      Find: (\d\s)(\d+\.\d%)(\t\d\s)(\d+\.\d%)(\t\d\s)(\d+\.\d%)
      Replace: $1($2)$3($4)$5($6)

    • #71196
      Eugene Tyson
      Member

      This works for me

      (?<=\d\s)(.+?%)
      ($1)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>