Thread: [Solved] Find/Replace Wildcard Needed
View Single Post
 
Old 11-11-2014, 06:10 AM
rsrasc rsrasc is offline Windows 7 64bit Office 2010 64bit
Competent Performer
 
Join Date: Mar 2014
Location: Germany
Posts: 148
rsrasc is on a distinguished road
Default Find/Replace Wildcard Needed

I have the following text in a document:

Answer A is correct.
Answer B is incorrect.
Answer C is incorrect.
Answer D is incorrect.

This is the output that I would like to get with a find and replace code :

Answer (A) is correct.
Answer (B) is incorrect.
Answer (C) is incorrect
Answer (D) is correct.

I tried to play with the following code given to me but can't get it to work.

Find = "([A-Z]).*[Aa]nswer*( is[ in]{1,3}correct.)"
Replace = "Answer (\1)\2"

Thanks!
Reply With Quote