Try to find a 0, an x, and at least one hexadecimal:
str:find("^0x%x+$")
wil return 1 when OK, nil if not
(Avoids the string copy that string:match does)
--
Oliver
Am 27.10.2014 um 16:54 schrieb Jain,
Punit:
[
String to Hexadecimal Conversion,
Jain, Punit