Fix typo and adds a-f and A-F to the accepted characters.

Extending the regexp to accept Hexadecimal values.