/pattern$
You can search for a string or pattern that only appears at the end of the line by
ending your search pattern with a $
/foo$
will only match a foo at the end of the line.
/;$
will only match semicolons at the end of the line.