1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.validate.set.hex">
7 <classname>Zend_Validate_Hex</classname> allows you to validate if a given value contains
8 only hexadecimal characters. These are all characters from <emphasis>0 to 9</emphasis> and
9 <emphasis>A to F</emphasis> case insensitive. There is no length limitation for the input
13 <programlisting language="php"><![CDATA[
14 $validator = new Zend_Validate_Hex();
15 if ($validator->isValid('123ABC')) {
16 // value contains only hex chars
23 <title>Invalid characters</title>
26 All other characters will return false, including whitespace and decimal point. Also
27 unicode zeros and numbers from other scripts than latin will not be treaten as valid.
31 <sect3 id="zend.validate.set.hex.options">
32 <title>Supported options for Zend_Validate_Hex</title>
35 There are no additional options for <classname>Zend_Validate_Hex</classname>: