- Code: Select all
p[@class!="red"]
it will match paragraph with 'red' class only
- Code: Select all
<p class="red">text</p>
but will not match paragraph with more then one class
- Code: Select all
<p class="red right">text</p>
Is there a way to said ''NOT IN CLASS LIST' or 'NOT SUBSTRING' instead of 'NOT EQUAL' (!=), or some other solution?
Thank you