Previous Topic: ValidationNext Topic: Inside %SSN%


Inside %CCN%

The %CCN% variable wraps up a large expression that: identifies Credit Card numbers; eliminates common false positives; validates the number using the Lunn algorithm; and removes all white spaces. The expression returns the number in a %CCN% variable that can be used in smart tags and user notification messages.

%CCN% expands to:

{%mark%
%digits% %return% %mark% %<<% {%digits%%false%}[?] %return% %mark% %>>%
%#{\d[13,20]}|{{\d[3,4]{{-| }\d[3,4]}[3,g]}}%
{%digits%%false%}[?]
%return% %mark% %<<%
{{%digits%|-|tel|tele|telephone|+|fax}|{{{#}|id|num|number} {order|transaction|tracking|confirmation}}%false%}[?]
%return% %>>%
%<CCN validate="CCN" transform="onlydigits">% %digits%{-[?]%#\d[3,g]%}[*g]  %</CCN>%
}