Re: Replacing text via code
- From: Roger Spencelayh <spencelayh@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 May 2005 18:04:44 +0100
In article <edAgWWsWFHA.2128@xxxxxxxxxxxxxxxxxxxx>, Greg Maxey wrote:
> The parens around the first "([0-9])" is a group (group 1). The parens
> around the second "([0-9])" is a group (group 2). In the replace with field
> you are putting back the found content of group 1 "\1" the en dash "^=" and
> the content of found group 2 "\2"
>
Twas the Grouping capability I wasn't aware of, and I've now found it in the
help. Works great when you know what you're looking for <s>.
> The a description of most of the special wildcard codes can be found in Word
> Help. Here is an excellent reference by fellow MVP Graham Mayor:
> http://www.gmayor.com/replace_using_wildcards.htm
>
I'll have a look for that this evening. Thanks again.
--
Roger
.
- References:
- Replacing text via code
- From: Roger Spencelayh
- Re: Replacing text via code
- From: Greg
- Re: Replacing text via code
- From: Roger Spencelayh
- Re: Replacing text via code
- From: Greg Maxey
- Replacing text via code
- Prev by Date: Re: Dock custom window to Word frame
- Next by Date: WordML Document not opening correctly via Response Object
- Previous by thread: Re: Replacing text via code
- Next by thread: OLE links damaged by macro???
- Index(es):
Relevant Pages
|