How to match a string that does not end with a substring

@Alet I think this will work for you:

r'^sample=".+?(?<!match")$'

PS: sorry I do not reply to Question about (?!... regexp or send you a PM, but I can’t, and I can’t post in Discourse Feedback. I hope it’s a temporary tech issue.