Fixed typo in the HeX sub patterns.
Test upper/lower case with respect to -base (IPv6)