@@ -759,15 +759,16 @@ alpha_numeric_space No Fails if field contains anything other than
759759 alphanumeric or space characters.
760760alpha_numeric_punct No Fails if field contains anything other than
761761 alphanumeric, space, or this limited set of
762- punctuation characters: ~ (tilde),
763- ! (exclamation), # (number), $ (dollar),
764- % (percent), & (ampersand), * (asterisk),
765- - (dash), _ (underscore), + (plus),
766- = (equals), | (vertical bar), : (colon),
767- . (period).
762+ punctuation characters: ``~ `` (tilde),
763+ ``! `` (exclamation), ``# `` (number),
764+ ``$ `` (dollar), ``% (percent), & (ampersand),
765+ ``* `` (asterisk), ``- `` (dash),
766+ ``_ `` (underscore), ``+ `` (plus),
767+ ``= `` (equals), ``| `` (vertical bar),
768+ ``: `` (colon), ``. `` (period).
768769decimal No Fails if field contains anything other than
769- a decimal number.
770- Also accepts a + or - sign for the number.
770+ a decimal number. Also accepts a `` + `` or
771+ `` - `` sign for the number.
771772differs Yes Fails if field does not differ from the one ``differs[field_name] ``
772773 in the parameter.
773774exact_length Yes Fails if field is not exactly the parameter ``exact_length[5] `` or ``exact_length[5,8,12] ``
@@ -833,8 +834,8 @@ valid_email No Fails if field does not contain a valid
833834valid_emails No Fails if any value provided in a comma
834835 separated list is not a valid email.
835836valid_ip No Fails if the supplied IP is not valid. ``valid_ip[ipv6] ``
836- Accepts an optional parameter of ' ipv4' or
837- ' ipv6' to specify an IP format.
837+ Accepts an optional parameter of `` ipv4 `` or
838+ `` ipv6 `` to specify an IP format.
838839valid_url No Fails if field does not contain (loosely) a
839840 URL. Includes simple strings that could be
840841 hostnames, like "codeigniter".
@@ -849,22 +850,23 @@ valid_date No Fails if field does not contain a valid date.
849850valid_cc_number Yes Verifies that the credit card number matches ``valid_cc_number[amex] ``
850851 the format used by the specified provider.
851852 Current supported providers are:
852- American Express (amex),
853- China Unionpay (unionpay),
854- Diners Club CarteBlance (carteblanche),
855- Diners Club (dinersclub),
856- Discover Card (discover),
857- Interpayment (interpayment), JCB (jcb),
858- Maestro (maestro), Dankort (dankort),
859- NSPK MIR (mir),
860- Troy (troy), MasterCard (mastercard),
861- Visa (visa), UATP (uatp), Verve (verve),
862- CIBC Convenience Card (cibc),
863- Royal Bank of Canada Client Card (rbc),
864- TD Canada Trust Access Card (tdtrust),
865- Scotiabank Scotia Card (scotia),
866- BMO ABM Card (bmoabm),
867- HSBC Canada Card (hsbc)
853+ American Express (``amex ``),
854+ China Unionpay (``unionpay ``),
855+ Diners Club CarteBlance (``carteblanche ``),
856+ Diners Club (``dinersclub ``),
857+ Discover Card (``discover ``),
858+ Interpayment (``interpayment ``),
859+ JCB (``jcb ``), Maestro (``maestro ``),
860+ Dankort (``dankort ``), NSPK MIR (``mir ``),
861+ Troy (``troy ``), MasterCard (``mastercard ``),
862+ Visa (``visa ``), UATP (``uatp ``),
863+ Verve (``verve ``),
864+ CIBC Convenience Card (``cibc ``),
865+ Royal Bank of Canada Client Card (``rbc ``),
866+ TD Canada Trust Access Card (``tdtrust ``),
867+ Scotiabank Scotia Card (``scotia ``),
868+ BMO ABM Card (``bmoabm ``),
869+ HSBC Canada Card (``hsbc ``)
868870======================= ========== ============================================= ===================================================
869871
870872.. note :: You can also use any native PHP functions that return boolean and
0 commit comments