You'll want to take these three lines out.  In this case, "$" means "end of line" in the regular expression, not the actual dollar sign.