Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
richardbelldc richardbelldc is offline
external usenet poster
 
Posts: 1
Default Using wildcards for whole phrases

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   Report Post  
Posted to microsoft.public.word.docmanagement
Herb Tyson [MVP] Herb Tyson [MVP] is offline
external usenet poster
 
Posts: 2,936
Default Using wildcards for whole phrases

In Find and Replace, click More if necessary, and enable Use wildcards.

Find what:\/a\*\/li\

Replace withleave empty)

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   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Using wildcards for whole phrases

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LISTNUM & Wildcards Fuzzhead Microsoft Word Help 14 May 16th 06 07:23 PM
Multiple wildcards in an IF expression TWeekley Mailmerge 1 September 22nd 05 11:30 AM
Find/Replace Wildcards DeanH Microsoft Word Help 2 August 11th 05 09:44 AM
How do I use wildcards to search for ", [any word] and" ? Sweeitebird Microsoft Word Help 3 May 16th 05 08:42 AM
Wildcards using [ ] characters Jacob Microsoft Word Help 3 February 8th 05 06:44 AM


All times are GMT +1. The time now is 03:13 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"