Skip to content

hex ​

Checks that the value is a string of hex digits 0-9a-fA-F, without the 0x prefix.

Error codes: WRONG_HEX, FORMAT_ERROR

Live example · edit rules or inputOpen in playground
rules
input
Invaliderrors
{
  "data": "WRONG_HEX"
}

The case of the input is kept in the output.