Find and Replace

  • Thread starter Thread starter Don
  • Start date Start date
D

Don

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.
 
Don said:
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
 


Many thanks Jay.

This " \(*\) " worked fine.

I'm almost sure that I attempted that previosly and it failed. Maybe I just
made a typo, or perhaps it was because I didn't have the wildcard option
check, DUH! ;)

I use Word in a very limited capacity and had to search help as to how to
show the paragraph/line breaks as I couldn't recall.

These lines have a backward P followed immedaitely by another straight
line, not sure if that's the paragraph or line-break.

In any event, I was able to find a method to accomplish my task.

Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top