$ should be ^. ^ is beginning of string. \\. can just be \.