#1   Report Post  
Jay Freedman
 
Posts: n/a
Default Find and Replace

Don wrote:
Might anybody be aware if it's possible to find any number of
charactes that are contained in Parenethenses?

I've explored the more options of find and tinkered, however didn't
find a method.

Thanks in advance


Hi Don,

That's a job for a wildcard search. See
http://www.gmayor.com/replace_using_wildcards.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


  #2   Report Post  
Don
 
Posts: n/a
Default Find and Replace

"Jay Freedman" wrote in news:eGkVaMU5FHA.3880
@TK2MSFTNGP12.phx.gbl:

Don wrote:
Might anybody be aware if it's possible to find any number of
charactes that are contained in Parenethenses?

I've explored the more options of find and tinkered, however didn't
find a method.

Thanks in advance


Hi Don,

That's a job for a wildcard search. See
http://www.gmayor.com/replace_using_wildcards.htm.


Many thanks for the link Jay.

Reading what I read, doesn't seem to help.

What I desire to do in the example below is replace "(NET-24-23-0-0-1)"
with delete. (Parenthenses and all.

Most of the queries that I've attempted just take out all text on the page.

The following removed as desired however ran all the output text togther in
a single line.

Then tried (*)

Here's a single line example of the many lines that are contained on the
page I'm tinkering (one of many pages).


Joe's Fish House SACRAMENTO-13 (NET-24-23-0-0-1)
24.23.0.0 - 24.23.63.255

The end result I desire would be:

Joe's Fish House SACRAMENTO-13 24.23.0.0 - 24.23.63.255

Any thoughts? (BTW these are ARIN IP ranges).

Thanks in advance.


  #3   Report Post  
Jay Freedman
 
Posts: n/a
Default Find and Replace

Don wrote:
"Jay Freedman" wrote in
news:eGkVaMU5FHA.3880 @TK2MSFTNGP12.phx.gbl:

Don wrote:
Might anybody be aware if it's possible to find any number of
charactes that are contained in Parenethenses?

I've explored the more options of find and tinkered, however didn't
find a method.

Thanks in advance


Hi Don,

That's a job for a wildcard search. See
http://www.gmayor.com/replace_using_wildcards.htm.


Many thanks for the link Jay.

Reading what I read, doesn't seem to help.

What I desire to do in the example below is replace
"(NET-24-23-0-0-1)" with delete. (Parenthenses and all.

Most of the queries that I've attempted just take out all text on the
page.

The following removed as desired however ran all the output text
togther in a single line.

Then tried (*)

Here's a single line example of the many lines that are contained on
the page I'm tinkering (one of many pages).


Joe's Fish House SACRAMENTO-13 (NET-24-23-0-0-1)
24.23.0.0 - 24.23.63.255

The end result I desire would be:

Joe's Fish House SACRAMENTO-13 24.23.0.0 - 24.23.63.255

Any thoughts? (BTW these are ARIN IP ranges).

Thanks in advance.


Hi Don,

I thought this was more obvious in Graham's article, but now that I reread
it I see that it's sort of hidden: If you want to use any of the "special
meaning" characters in a wildcard search, you have to precede it with a
backslash. This is mentioned in the article in the right-hand column of the
row that discusses square brackets.

Because parentheses are "special meaning" characters, the search expression
needs to have a backslash before each parenthesis like this:

\(*\)

I can't tell from your example whether there's a paragraph mark or a manual
line break at the end of the first line. If there is, you'll have to include
the corresponding character code in the search expression (^13 for a
paragraph mark or ^11 for a line break). Then it would be something like
this:

\(*\)^13
or
\(*\)^11

Sometimes you may find that a search with an asterisk finds too much text --
for example, if the closing parenthesis is missing from one instance, the
expression above will grab everything up to the next closing parenthesis,
which would be in a different paragraph. To avoid this, you could use an
expression that says "everything that's between parentheses but does not
include a paragraph mark/line break":

\([!^13]\)^13
or
\([!^11]\)^11

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


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
Find and Replace GREEK symbols in XP, 2K & 97 Jazz Microsoft Word Help 3 April 8th 05 08:13 PM
Problem with function "Find and Replace" in Word. Pat Microsoft Word Help 3 March 16th 05 01:04 PM
Find and Replace Michael R New Users 11 January 22nd 05 05:31 PM
Find and Replace anomaly BruceM Microsoft Word Help 7 January 18th 05 05:47 PM
find and replace symbols Tewodaj New Users 8 January 11th 05 02:22 AM


All times are GMT +1. The time now is 07:48 PM.

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

About Us

"It's about Microsoft Word"