Anything that matches something ending with a --- .*a$
So when you match the regex, negate the condition
or alternatively you can also do .*[^a]$
where [^a]
means anything which is not a
↧
Answer by Bill for Regex for string not ending with given suffix
↧