Ac maskedlast_four Debited by currency amount thru Debitcard skip at merchantName on date. Aval Bal INR balance-PNB
Ac XX0000 Debited by INR 125.00 thru Debitcard XXXX0000 at Example Shop on 01-01-2026. Aval Bal INR 9000.00-PNB
PNB_CC_UPI_V1
Last updated
Quick answer
A Punjab National Bank Card spend debit SMS looks like this: “PNB Credit Card 1234 debited with Rs.1,499 [CODE:AB1234] at AMAZON INDIA on 05-10-2026 10:12 through UPI: 123456789012 Avl limit Rs. 47383.5. -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, the merchant or payee, a reference number and the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.
PNB Credit Card last_four debited with currency.amount [CODE:skip] at merchantName on date time through UPI: upi_ref Avl limit Rs. limit. -PNB
PNB Credit Card 1234 debited with Rs.1,499 [CODE:AB1234] at AMAZON INDIA on 05-10-2026 10:12 through UPI: 123456789012 Avl limit Rs. 47383.5. -PNB
| Field | Extracted value |
|---|---|
| last_four | 1234 |
| currency | Rs |
| amount | 1,499 |
| skip | AB1234 |
| merchantName | AMAZON INDIA |
| date | 05-10-2026 |
| time | 10:12 |
| upi_ref | 123456789012 |
| limit | 47383.5 |
^PNB Credit Card \s*(?<last_four>\d{4})\s* debited with \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* \[CODE:\s*(?<skip>[\s\S]+?)\s*\] at \s*(?<merchantName>[\s\S]+?)\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* through UPI: \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* Avl limit Rs\. \s*(?<limit>[\s\S]+?)\s*\. -PNB/api/templates/pnb-cc-upi-v1{
"id": "pnb-cc-upi-v1",
"name": "PNB_CC_UPI_V1",
"bank": {
"code": "PNB",
"name": "Punjab National Bank",
"slug": "pnb"
},
"category": "Card spend",
"payment_mode": "CARD",
"direction": "debit",
"keywords": [
"PNB Credit Card",
"debited with",
"through UPI"
],
"template": "PNB Credit Card {last_four} debited with {currency}.{amount} [CODE:{skip}] at {merchantName} on {date} {time} through UPI: {upi_ref} Avl limit Rs. {limit}. -PNB",
"regex": "^PNB Credit Card \\s*(?<last_four>\\d{4})\\s* debited with \\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* \\[CODE:\\s*(?<skip>[\\s\\S]+?)\\s*\\] at \\s*(?<merchantName>[\\s\\S]+?)\\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* through UPI: \\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s* Avl limit Rs\\. \\s*(?<limit>[\\s\\S]+?)\\s*\\. -PNB",
"regex_flags": "i",
"sample": "PNB Credit Card 1234 debited with Rs.1,499 [CODE:AB1234] at AMAZON INDIA on 05-10-2026 10:12 through UPI: 123456789012 Avl limit Rs. 47383.5. -PNB",
"verified": true,
"source": "pennywise"
}Ac maskedlast_four Debited by currency amount thru Debitcard skip at merchantName on date. Aval Bal INR balance-PNB
Ac XX0000 Debited by INR 125.00 thru Debitcard XXXX0000 at Example Shop on 01-01-2026. Aval Bal INR 9000.00-PNB
PNB Credit Card 1234 debited with Rs.1,499 [CODE:AB1234] at AMAZON INDIA on 05-10-2026 10:12 through UPI: 123456789012 Avl limit Rs. 47383.5. -PNB — the parts that change are the amount, the last digits of the account or card, the date, the merchant or payee, a reference number and the available balance or credit limit.
First check that the message contains “PNB Credit Card”, “debited with”, “through UPI”. Then match it with this case-insensitive regular expression: ^PNB Credit Card \s*(?<last_four>\d{4})\s* debited with \s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* \[CODE:\s*(?<skip>[\s\S]+?)\s*\] at \s*(?<merchantName>[\s\S]+?)\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* through UPI: \s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s* Avl limit Rs\. \s*(?<limit>[\s\S]+?)\s*\. -PNB. The named groups give you the amount, the last digits of the account or card, the date, the merchant or payee, a reference number and the available balance or credit limit.
Yes. The template is checked automatically against a real, redacted message on every build, and the build fails if it stops matching.
Yes. Punjab National Bank sends 2 different Card spend formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.