$ should be ^. ^ is beginning of string