Tin Amaranth
Tin Amaranth

Reputation: 701

Microsoft Word Find & Replace Wildcards (except this pattern)

How can I use wildcards to find except this pattern.

For example, if the text is "html html>", I can use "\<[a-zA-Z]@>" to find the pattern "<html>" or "<css>".

However, how can I find the opposite, excluding "<html>" or "<css>"? "[!\<[a-zA-Z]@>]" does not return anything.

Upvotes: 0

Views: 2483

Answers (1)

edi9999
edi9999

Reputation: 20554

[!range] can only be used with a range inside, meaning you can't write a regex inside [!].

You could use it to do something like this : [!<][a-zA-Z]@[!>]

This will find every [a-zA-Z] that is not surrounded by <>

Upvotes: 1

Related Questions