Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any Find Replace using wildcard experts around?

Status
Not open for further replies.

richiwatts

Technical User
Joined
Jun 21, 2002
Messages
180
Location
GB
Hi,

I am searching sentences that start with <ps and end in a paragraph (hard return) using wildcards:

\<ps*^013

The above works really well, however, I have a problem.

Out of these sentences I don't want it to find any sentence that has // in it.

How would I search the above but hope over any sentence that has // in it?

Cheers Rich
 
I know jokers are wild, but that's about all.

Have you tried

[!\\] ?

Member AAA - Abolish Abused Abbreviations
 
Unfortunately, that's all I know.

[!(char)] excludes those characters.

Member AAA - Abolish Abused Abbreviations
 
/ is part of the wildcard characters. To search for them you have to put \ before them but [!\/\/\doesn't work either.

Thanks anyway

Rich

 
Try:

(\<ps)*([!//])^013

Using wildcards "<" means start of word, so if you want to actually include the "<" of "<ps", you need the \.

The parenthesis is what makes the difference...or it does for me.

Gerry
 
Nope,

It still highlights sentences with // in them

Rich
 
What version are you using? Because that totally works for me. It finds all the paragraphs starting with <ps EXCEPT if the paragraph has // in it.

Hmmmmmm.

Gerry
 
Yes, but I only want to find the paragraph that DO NOT have // in them

word 2003

Rich
 
Excuse me, but from your original post...
Out of these sentences I don't want it to find any sentence that has // in it.
So now you are changing what you want to find?

Please clarify, and be specific.

Gerry
My paintings and sculpture
 
I have always said that I don't want the sentences to have // in them

???

Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top