Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I want to delete all text between a set of phrases that start with /a and
end with /li. The text in between the brackets is all different. So I want an expression like Replace /axxxyyydddaaa/li where the words represented by xxx, yyy, ddd, and aaa are different words of varying lengths. Or an expression that says, "delete everything between these two symbols or letters." |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
In Find and Replace, click More if necessary, and enable Use wildcards.
Find what:\/a\*\/li\ Replace with ![]() This assumes that you want to delete the /a and /li dilimiters as well. If you want to leave those, then set Replace with to: /a/li Note: because and are special characters in the Find what: field when Use wildcards is enabled, you have to precede them with the \ character to force Word not to interpret them as the beginning/end of a word. -- Herb Tyson MS MVP http://www.herbtyson.com Author of the Word 2007 Bible Please respond in the newsgroups so everyone can follow along. "richardbelldc" wrote in message ... I want to delete all text between a set of phrases that start with /a and end with /li. The text in between the brackets is all different. So I want an expression like Replace /axxxyyydddaaa/li where the words represented by xxx, yyy, ddd, and aaa are different words of varying lengths. Or an expression that says, "delete everything between these two symbols or letters." |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
See http://www.gmayor.com/replace_using_wildcards.htm which explains what
Herb has suggested. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org richardbelldc wrote: I want to delete all text between a set of phrases that start with /a and end with /li. The text in between the brackets is all different. So I want an expression like Replace /axxxyyydddaaa/li where the words represented by xxx, yyy, ddd, and aaa are different words of varying lengths. Or an expression that says, "delete everything between these two symbols or letters." |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
LISTNUM & Wildcards | Microsoft Word Help | |||
Multiple wildcards in an IF expression | Mailmerge | |||
Find/Replace Wildcards | Microsoft Word Help | |||
How do I use wildcards to search for ", [any word] and" ? | Microsoft Word Help | |||
Wildcards using [ ] characters | Microsoft Word Help |