Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find and Replace GREEK symbols in XP, 2K & 97 | Microsoft Word Help | |||
Problem with function "Find and Replace" in Word. | Microsoft Word Help | |||
Find and Replace | New Users | |||
Find and Replace anomaly | Microsoft Word Help | |||
find and replace symbols | New Users |