Regex help: find missing word in a line

Discussion related to "Everything" 1.5 Alpha.
Post Reply
wise_mike
Posts: 15
Joined: Thu Mar 21, 2024 9:52 am

Regex help: find missing word in a line

Post by wise_mike »

I am trying to find any <img tag that doesn't have the word class.

I tested this in NP++ and it works, but can't get it to worm with Everything:

Code: Select all

<img((?!class).)*$
also tried:

Code: Select all

regex*:content:<img((?!class).)*$
Any suggestions? Thanks.
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Regex help: find missing word in a line

Post by therube »

(I have no clue, but maybe) binary: ?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regex help: find missing word in a line

Post by void »

regex*: will treat the remaining text as literal (including content:)

Please try:

regex:content*:<img((?!class).)*$


-or-

regex:content:"<img((?!class).)*$"


(double quotes (") to escape the starting group operator (<) )
Post Reply