Han: use [a-fA-F\d] instead of \h to check hex values