Skip navigation
NutTriooo
Currently Being Moderated

Find and replace a combination of character formats

Apr 16, 2012 3:27 AM

Hello all,

 

Is it possible to find and replace a combination of character formats.

for example:

Search for VA. The V in Arial and the A is Helvetica.

Replace this in V Arial and A in Verdana.

 

Regards.

 
Replies
  • Currently Being Moderated
    Apr 16, 2012 3:58 AM   in reply to NutTriooo

    Ive been thinking about this, and I don't think it's possible. It certainly isn't doable in one step in Find/Change and I don't think it's doable at all because there is not, as far as I know, a way to use a lookahead or lookbehind to find formatting that is different from the formatting of the string you are trying to locate, and you can't find multiple formats in one step.

     

    You can certainly find a V followed by an A, and you can even find all Arial V followed by A, or Helvetica A preceded by V, but unless the formatting is restricted to JUST the VA combinations you are looking for you have a problem.  If you can fiund just those combinations, you could replace using formatted contents of the clipboard, but I don't see a way to be sure you are only finding the particular string you want.

     

    It might be scriptable, though...

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 4:30 AM   in reply to Peter Spier

    Create a new swatch and call it "Red".

    Find V in Arial, replace with character color "Red".

    Find A in Helvetica, replace with character color "Red".

    Replace "VA" in character color "Red" with something else (from the clipboard is fine).

    Delete swatch "Red" and replace with Black.

     

    A lot of work, certainly, but then again the OP seems to be mixing Arial, Helvetica and Verdana at will, so I guess that's the price to pay.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 5:17 AM   in reply to [Jongware]

    See, you think more clearly than I do at 4:00 a.m.

     

    I was convinced I would need to apply the character style only when the two letters are in sequence together, but obviously that's not the case.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 8:37 AM   in reply to NutTriooo

    NutTriooo wrote:

     

    Hello all,

     

    Is it possible to find and replace a combination of character formats.

    for example:

    Search for VA. The V in Arial and the A is Helvetica.

    Replace this in V Arial and A in Verdana.

     

    Regards.

    If the letter pairs are always the same, change one manually, then copy to clipboard. Find whatever; in the change to pop-up menu under the "@" symbol, Other > Clipboard Contents Formatted.

     

     

    HTH

     

     

    Regards,

     

     

    Peter

    _______________________

    Peter Gold

    KnowHow ProServices    

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points