Reputation: 701
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
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