0

I want to highlight the following links using Word find/replace tool:

asdasdsa.com/192jd92d2

asdasdsa.com/192jd92d223232

asdasdsa.com/192jd92d24323f23f32f

Is there a way I can get Word to highlight each of those using one formula?

2

Take advantage of the Use wildcards feature of Word.

On the Find and Replace dialog, click More and enable Use wildcards.

Within the Find what: field, include a * to represent any number of characters and ^13 to indicate a linebreak.

Click in the Replace with: field. Then select Format | Highlight.

enter image description here

Any line that contains asdasdsa.com will be highlighted starting with asdasdsa.com to the end of the line.

  • It worked! Can you explain what means a linebreak? – Andrei Ciprian May 22 at 20:40
  • I mean why did you use 13? Can you elaborate? – Andrei Ciprian May 22 at 20:47
  • 1
    A linebreak is inserted when you press the Enter key. If you are showing formatting marks in Word, you would see the paragraph symbol. ^13 is just the symbol representing the linebreak character. ASCII decimal code 13 is the character code for carriage return, which is probably why ^13 was chosen. – davidmneedham May 22 at 21:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.