This page explains how to use the iscc function in APL to check if a string is a valid credit card number.
iscc
function to determine whether a given string is a valid credit card number. This function checks the string against known credit card number patterns and applies a checksum verification (typically the Luhn algorithm) to validate the structure and integrity of the input.
You can use iscc
when analyzing logs that may contain sensitive data to detect accidental leakage of credit card information. It is also useful when filtering or sanitizing input data, monitoring suspicious behavior, or validating form submissions in telemetry data.
Splunk SPL users
eval
or custom search commands.ANSI SQL users
LIKE
or REGEXP
, plus a user-defined function to implement checksum validation.Name | Type | Description |
---|---|---|
value | string | The string to evaluate for validity. |
bool
value:
true
if the input string is a valid credit card number.false
otherwise._time | has_credit_card |
---|---|
2025-07-10T10:42:00 | true |