regular expression fix

removed dollar sign in the end