To find every line that ends with a specific word, you can use the following regex expression:
Let’s say that there’s a specific word you always end your articles with, for example, “as always!”.
But you’ve noticed that in some articles, you have mistakenly added two exclamation marks at the end of the line:
That looks silly.
Instead of going through 100s of articles manually to find the sinners, you can simply search for every matching instance of
How the regex code works:
$ are anchors:
^matches any string that starts with “as”
$matches any string that ends with ”always!!”