Update regular expression for registration code