Punjab National Bank IMPS debit SMS format

PNB_IMPS_DEBIT_V1

Last updated

Punjab National Bank·IMPSBANKDebitVerified

Quick answer

A Punjab National Bank IMPS debit SMS looks like this: “Your a/c no XX1234 is debited for Rs 1000 on 01-01-25 12:00:00 and a/c XX456 credited (IMPS Ref no 123456789012) .If not done by you, pl. forward this SMS from registered mobile to 9264092640 to report unauthorized txn & block IBS/MBS. Download PNB ONE.-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, the date and a reference number; everything else is fixed text, so it can be matched with the regex below.

Template

Your a/c no is debited for currency amount on date time and a/c skip credited (IMPS Ref no upi_ref) .

Sample SMS

Template matches this sample

Your a/c no is debited for Rs 1000 on 01-01-25 12:00:00 and a/c XX456 credited (IMPS Ref no 123456789012) .If not done by you, pl. forward this SMS from registered mobile to 9264092640 to report unauthorized txn & block IBS/MBS. Download PNB ONE.-PNB

FieldExtracted value
X
X1234
currencyRs
amount1000
date01-01-25
time12:00:00
skipXX456
upi_ref123456789012

Compiled regex

flags: i
^Your a/c no \s*(?<masked>[\s\S]+?)\s*\s*(?<acct_tail>[\s\S]+?)\s* is debited for \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* on \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* and a/c \s*(?<skip>[\s\S]+?)\s* credited \(IMPS Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\) \.
JSON/api/templates/pnb-imps-debit-v1
{
  "id": "pnb-imps-debit-v1",
  "name": "PNB_IMPS_DEBIT_V1",
  "bank": {
    "code": "PNB",
    "name": "Punjab National Bank",
    "slug": "pnb"
  },
  "category": "IMPS",
  "payment_mode": "BANK",
  "direction": "debit",
  "keywords": [
    "is debited for",
    "IMPS Ref no",
    "-PNB"
  ],
  "template": "Your a/c no {masked}{acct_tail} is debited for {currency} {amount} on {date} {time} and a/c {skip} credited (IMPS Ref no {upi_ref}) .",
  "regex": "^Your a/c no \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<acct_tail>[\\s\\S]+?)\\s* is debited for \\s*(?<currency>[A-Z]{2,4})\\s* \\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* on \\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* and a/c \\s*(?<skip>[\\s\\S]+?)\\s* credited \\(IMPS Ref no \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\) \\.",
  "regex_flags": "i",
  "sample": "Your a/c no XX1234 is debited for Rs 1000 on 01-01-25 12:00:00 and a/c XX456 credited (IMPS Ref no 123456789012) .If not done by you, pl. forward this SMS from registered mobile to 9264092640 to report unauthorized txn & block IBS/MBS. Download PNB ONE.-PNB",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a Punjab National Bank IMPS debit SMS look like?

Your a/c no XX1234 is debited for Rs 1000 on 01-01-25 12:00:00 and a/c XX456 credited (IMPS Ref no 123456789012) .If not done by you, pl. forward this SMS from registered mobile to 9264092640 to report unauthorized txn & block IBS/MBS. Download PNB ONE.-PNB — the parts that change are the amount, the last digits of the account or card, the date and a reference number.

How do I parse a Punjab National Bank IMPS SMS?

First check that the message contains “is debited for”, “IMPS Ref no”, “-PNB”. Then match it with this case-insensitive regular expression: ^Your a/c no \s*(?<masked>[\s\S]+?)\s*\s*(?<acct_tail>[\s\S]+?)\s* is debited for \s*(?<currency>[A-Z]{2,4})\s* \s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* on \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* and a/c \s*(?<skip>[\s\S]+?)\s* credited \(IMPS Ref no \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\) \.. The named groups give you the amount, the last digits of the account or card, the date and a reference number.

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 IMPS debit SMS format (PNB_IMPS_DEBIT_V1) | Iris SMS Templates