#1
|
|||
|
|||
Find Replace
Hi All,
I am simply trying to run the Find and Replace feature in MS Word undertaking the following: In my word document I have over 100 lines that have the following type of syntax Match_2\Level_0\Column1.txt Match_2\Level_1\Column2.txt Match_2\Level_2\Column3.txt Match_2\Level_3\Column1.txt Match_2\Level_4\Column2.txt Match_2\Level_5\Column3.txt Match_2\Level_6\Column1.txt Match_2\Level_7\Column2.txt Match_2\Level_8\Column3.txt Match_2\Level_9\Column1.txt Match_2\Level_10\Column2.txt I would like to do a find and replace exercise only on lines that contain the following text : "Column2,txt" and to replace the following text within each line as follows: the text Match_2 is replaced with the text Match_3. Therefore the modified data would be as below as highlighted in RED: Match_2\Level_0\Column1.txt Match_3\Level_1\Column2.txt Match_2\Level_2\Column3.txt Match_2\Level_3\Column1.txt Match_3\Level_4\Column2.txt Match_2\Level_5\Column3.txt Match_2\Level_6\Column1.txt Match_3\Level_7\Column2.txt Match_2\Level_8\Column3.txt Match_2\Level_9\Column1.txt Match_3\Level_10\Column2.txt Cheers |
#2
|
|||
|
|||
Try the following wild card find/replace:
Find=([Match_2]@)(\\[!^p]@)(Column2.txt) Replace=Match_3\2\3 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and replace paragraph mark on selected text and replace it with space in PowerPoint VBA | laith93 | PowerPoint | 0 | 11-09-2023 04:34 AM |
Find and Replace from Predetermined list of Text for Both Find and Replace | dminor | Word VBA | 1 | 08-16-2022 03:40 PM |
How do you use the find and replace tool to find dates and times in Excel 2013? | Jules90 | Excel | 3 | 04-14-2020 07:40 PM |
Find what box in Find and replace limits the length of a search term | Hoxton118 | Word VBA | 7 | 06-10-2014 05:05 AM |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |