You are viewing a single comment's thread. Return to all comments →
Javascript:
const lines = input.split("\n"); lines.shift(); lines.forEach((line) => { if (!line) { return; } const status = line.match(/^[A-Z]{5}\d{4}[A-Z]$/) ? 'YES' : 'NO'; console.log(status); })
Seems like cookies are disabled on this browser, please enable them to open this website
Valid PAN format
You are viewing a single comment's thread. Return to all comments →
Javascript: