Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

italics text find and add-replace

Return to Member Forum

  • Author
    Posts
    • #110594

      I need to find all occurrences of text in italics and add a unique character inside this text, e.g. as the second character. Is this possible?

    • #110598

      Hi
      You could do this with GREP. Try something like this:
      In the GREP tab of Find/Change, Search for:
      ([\u])([\u]+)
      And change to:
      $1(The character you want to add)$2

      And you have to Specify “italic” as an attribute to find

      It would have been much more understandable with a picture, but I didn’t know how to upload one.

      Hope this helps

    • #110610

      If @ is the char you want to insert after the 4th char …

      Find: (.{4})(.+)
      Replace by: $1@$2
      Find Format: + Italic

      Of course, that logically means if you want to insert @ at the beginning of each “italic” text, you need to find: (.{0})(.+)

      Best,
      Michel, for FRIdNGE

    • #110615

      Super, Michel, it works nicely! Is there also a way to put the character as the last char in the found strings in stead of at a specific position?

    • #110619

      Find: .+\K.
      Replace by: $0@
      Find Format: + Italic

      Best,
      Michel

    • #110620

      Super – you have been most helpfull :-)
      Jens

    • #110621

      Too many wrongly think here and elsewhere I’m really a bad not-heplful guy! …
      That will make me always laugh truly a lot! ;-)

      M

Viewing 6 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads