A/c maskedacct_tail credited currency amount From merchantName/UPI:upi_ref. Bal INR balance-PNB
A/c X0000 credited INR 125.00 From Example Shop Ltd/UPI:000000000003. Bal INR 9000.00-PNB
PNB_UPI_CREDIT_V1
Last updated
Quick answer
A Punjab National Bank UPI credit SMS looks like this: “Ac XX7582 Credited with Rs.4750.00 11-07-2025 08:53:21 thru UPI . Aval Bal Rs.82431.67 CR. (UPI Ref ID:714628305917) Helpline 18001800/18002021-PNB” It is a credit (money received) alert. The parts that change in each message are the amount, the last digits of the account or card, the date, a reference number and the available balance or credit limit; everything else is fixed text, so it can be matched with the regex below.
Ac maskedlast_four Credited with currency.amount date time thru UPI . Aval Bal currency2.balance CR. (UPI Ref ID:upi_ref)
Ac XX7582 Credited with Rs.4750.00 11-07-2025 08:53:21 thru UPI . Aval Bal Rs.82431.67 CR. (UPI Ref ID:714628305917) Helpline 18001800/18002021-PNB
| Field | Extracted value |
|---|---|
| masked | XX |
| last_four | 7582 |
| currency | Rs |
| amount | 4750.00 |
| date | 11-07-2025 |
| time | 08:53:21 |
| currency2 | Rs |
| balance | 82431.67 |
| upi_ref | 714628305917 |
^Ac \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* Credited 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 UPI \. Aval Bal \s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+?)\s* CR\. \(UPI Ref ID:\s*(?<upi_ref>[A-Za-z0-9\-]{4,32})\s*\)/api/templates/pnb-upi-credit-v1{
"id": "pnb-upi-credit-v1",
"name": "PNB_UPI_CREDIT_V1",
"bank": {
"code": "PNB",
"name": "Punjab National Bank",
"slug": "pnb"
},
"category": "UPI",
"payment_mode": "UPI",
"direction": "credit",
"keywords": [
"Credited with",
"thru UPI",
"-PNB"
],
"template": "Ac {masked}{last_four} Credited with {currency}.{amount} {date} {time} thru UPI . Aval Bal {currency2}.{balance} CR. (UPI Ref ID:{upi_ref})",
"regex": "^Ac \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* Credited 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 UPI \\. Aval Bal \\s*(?<currency2>[A-Z]{2,4})\\s*\\.\\s*(?<balance>[\\s\\S]+?)\\s* CR\\. \\(UPI Ref ID:\\s*(?<upi_ref>[A-Za-z0-9\\-]{4,32})\\s*\\)",
"regex_flags": "i",
"sample": "Ac XX7582 Credited with Rs.4750.00 11-07-2025 08:53:21 thru UPI . Aval Bal Rs.82431.67 CR. (UPI Ref ID:714628305917) Helpline 18001800/18002021-PNB",
"verified": true,
"source": "pennywise"
}A/c maskedacct_tail credited currency amount From merchantName/UPI:upi_ref. Bal INR balance-PNB
A/c X0000 credited INR 125.00 From Example Shop Ltd/UPI:000000000003. Bal INR 9000.00-PNB
A/c maskedacct_tail debited currency amount Dt date time to merchantName thru UPI:upi_ref.
A/c X0000 debited INR 250.00 Dt 02-01-26 12:00:00 to Swiggy Ltd thru UPI:000000000002.Bal INR 8750.00-PNB
Ac XX7582 Credited with Rs.4750.00 11-07-2025 08:53:21 thru UPI . Aval Bal Rs.82431.67 CR. (UPI Ref ID:714628305917) Helpline 18001800/18002021-PNB — the parts that change are the amount, the last digits of the account or card, the date, a reference number and the available balance or credit limit.
First check that the message contains “Credited with”, “thru UPI”, “-PNB”. Then match it with this case-insensitive regular expression: ^Ac \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* Credited 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 UPI \. Aval Bal \s*(?<currency2>[A-Z]{2,4})\s*\.\s*(?<balance>[\s\S]+?)\s* CR\. \(UPI Ref ID:\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, 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 3 different UPI formats catalogued here; banks often keep older wordings alive alongside new ones, so a parser should try all of them.