Punjab National Bank ATM withdrawal debit SMS format

PNB_ATM_V1

Last updated

Quick answer

A Punjab National Bank ATM withdrawal debit SMS looks like this: “A/c XX1234 debited with Rs.5000.00,21-11-2025 13:23:22 thru card XX9239 . Out of 5 free txn on PNB ATM, you utilized 1 txn. Chrgs applicable as per policy. Bal 27000.00 CR. If not done, fwd SMS to 9264192641 to block card/call 18001800/18002021-PNB” It is a debit (money spent or sent) alert. The parts that change in each message are the amount, the last digits of the account or card and the date; everything else is fixed text, so it can be matched with the regex below.

Template

A/c debited with currency.amount,date time thru card skip . Out of

Sample SMS

Template matches this sample

A/c debited with Rs.5000.00,21-11-2025 13:23:22 thru card XX9239 . Out of 5 free txn on PNB ATM, you utilized 1 txn. Chrgs applicable as per policy. Bal 27000.00 CR. If not done, fwd SMS to 9264192641 to block card/call 18001800/18002021-PNB

FieldExtracted value
XX
1234
currencyRs
amount5000.00
date21-11-2025
time13:23:22
skipXX9239

Compiled regex

flags: i
^A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* debited with \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s*,\s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* thru card \s*(?<skip>[\s\S]+?)\s* \. Out of
JSON/api/templates/pnb-atm-v1
{
  "id": "pnb-atm-v1",
  "name": "PNB_ATM_V1",
  "bank": {
    "code": "PNB",
    "name": "Punjab National Bank",
    "slug": "pnb"
  },
  "category": "ATM withdrawal",
  "payment_mode": "ATM",
  "direction": "debit",
  "keywords": [
    "thru card",
    "PNB ATM"
  ],
  "template": "A/c {masked}{last_four} debited with {currency}.{amount},{date} {time} thru card {skip} . Out of",
  "regex": "^A/c \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* debited with \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s*,\\s*(?<date>(?:\\d{2}-[A-Z]{3}-\\d{2,4}|\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* \\s*(?<time>(?:\\d{2}[A-Z]{3}\\d{4}|[\\dA-Z\\-/ :T]{4,32}))\\s* thru card \\s*(?<skip>[\\s\\S]+?)\\s* \\. Out of",
  "regex_flags": "i",
  "sample": "A/c XX1234 debited with Rs.5000.00,21-11-2025 13:23:22 thru card XX9239 . Out of 5 free txn on PNB ATM, you utilized 1 txn. Chrgs applicable as per policy. Bal 27000.00 CR. If not done, fwd SMS to 9264192641 to block card/call 18001800/18002021-PNB",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a Punjab National Bank ATM withdrawal debit SMS look like?

A/c XX1234 debited with Rs.5000.00,21-11-2025 13:23:22 thru card XX9239 . Out of 5 free txn on PNB ATM, you utilized 1 txn. Chrgs applicable as per policy. Bal 27000.00 CR. If not done, fwd SMS to 9264192641 to block card/call 18001800/18002021-PNB — the parts that change are the amount, the last digits of the account or card and the date.

How do I parse a Punjab National Bank ATM withdrawal SMS?

First check that the message contains “thru card”, “PNB ATM”. Then match it with this case-insensitive regular expression: ^A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* debited with \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s*,\s*(?<date>(?:\d{2}-[A-Z]{3}-\d{2,4}|\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* \s*(?<time>(?:\d{2}[A-Z]{3}\d{4}|[\dA-Z\-/ :T]{4,32}))\s* thru card \s*(?<skip>[\s\S]+?)\s* \. Out of. The named groups give you the amount, the last digits of the account or card and the date.

Is this Punjab National Bank SMS format verified?

Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.

Punjab National Bank ATM withdrawal debit SMS format (PNB_ATM_V1) | Iris SMS Templates