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

Find and Replace (Special)

Return to Member Forum

  • Author
    Posts
    • #115847

      Hello All,

      I have to Find a certain character and replace with some other character. But, I have to replace the same, before two characters. I am giving the Find and Replace pattern below.

      Text = “Hello World!”
      Find = “o”
      Replace with = “X”

      Result after Replacing = “HelXl oWrld!”

      Here, “o” is replaced with “X”, but the position of “X” is not the same as “o”. “X” is “taken” one character before.

      How to write a script for this?

    • #115852

      That is strange. Find-Replace with InDesign CC 14.01 gets me HellX WXrld.

    • #115892
      Masood Ahmad
      Participant

      Away from computer
      Try this:

      Grep Find: ([\u])(o)
      Change to: X$1

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