Fix incorrect pattern for matching optional 0x