Comments containing string1 but not string2 with no macro definition

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

SELECT Id AS [Comment Link], text, UserId AS [User Link], CreationDate
FROM Comments
WHERE Text LIKE '%##string1##%'
  AND NOT(Text LIKE '%##string2##%') 
  AND NOT(Text LIKE '%\newcommand%') 
  AND NOT(Text LIKE '%\DeclareMathOperator%') 
  AND NOT(Text LIKE '%\def%') 
ORDER BY CreationDate DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results