Re: String to Hexadecimal Conversion
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: String to Hexadecimal Conversion
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2014年10月27日 14:37:00 -0200
> How can I check whether a string is a hexadecimal number or not? E.g. "0x123" is a hex string, but "123" and "xyz" are not.
If you just want to convert the string to a number, tonumber does that
because it understands the "0x" prefix.