On Monday, October 27, 2014 05:15:10 PM Enrico Colombini wrote: > Also, it could be uppercase: > > str:lower():match("^0x%x+$") str:match("^%s*0[Xx]%x+%s*$") -- tom <telliamed@whoopdedo.org>