Add ^ to the collection of allowed special characters in a regular expression