Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to find all bolded words and replace them with the same word, unbolded, but with a symbol after it indicating that it was bolded.

So for example

Yesterday, love was such an easy game to play.

Would become something like:

Yesterday, love(b) was such(b) an easy game to play(b).

I know how to find all bolded words, but I'm having trouble replacing it with the same word.

Thanks!

share|improve this question

2 Answers 2

up vote 3 down vote accepted

1

[Had to insert some text to meet the minimum requirements, although none was required.]

share|improve this answer

Need use Microsoft VBScript Regular Expressions 5.5 and regular expression.

See:

MSWord macro: search and highlight formatted text patterns

Search for a special number vb.net

share|improve this answer
    
"Need use Microsoft VBScript Regular Expressions 5.5 and regular expression." - Absolutely no need! –  Karan May 19 '13 at 22:37
    
@Karan Well, you're back faster and more accurately, most likely it's a tradition, I still think) I feel closer to the mass script based way)). –  STTR May 19 '13 at 22:39
1  
I love the challenge of crafting a good script any day, but why waste precious time and effort when it's not required, right? :) –  Karan May 19 '13 at 22:40
    
@Karan Ok, for this is optional). –  STTR May 19 '13 at 22:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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