Force autosign regex to match entire string, Fix #4851

According to the [docs](http://docs.python.org/2/library/re.html), the `\A` matches the beginning of the string and the `\z` matches the end of the string.  Adding these forces a whole-string match, fixing this issue.