Spent currency.amount On HDFC Bank Card last_four At merchantName On date.Not You? To Block+Reissue Call support/SMS BLOCK CC last_four_digits to blockupi
HDFC Bank Card spend debit SMS format
HDFC_CARD_SPENT_V4
Last updated
Quick answer
An HDFC Bank Card spend debit SMS follows this pattern: “{currency}.{amount} spent on HDFC Bank Card {masked}{last_four} at {merchantName} on {txnDate}:{txnTime}.Not U?” 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 the merchant or payee; everything else is fixed text, so it can be matched with the regex below.
Template
currency.amount spent on HDFC Bank Card maskedlast_four at merchantName on txnDate:txnTime.Not U?
Sample SMS
No public sample for this format yet. It comes from a production parser, so it has matched real messages — but there is no redacted copy to show.
Compiled regex
^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* spent on HDFC Bank Card \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* at \s*(?<merchantName>[\s\S]+?)\s* on \s*(?<txnDate>[\s\S]+?)\s*:\s*(?<txnTime>[\s\S]+?)\s*\.Not U\?JSON/api/templates/hdfc-card-spent-v4
{
"id": "hdfc-card-spent-v4",
"name": "HDFC_CARD_SPENT_V4",
"bank": {
"code": "HDFC",
"name": "HDFC Bank",
"slug": "hdfc-bank"
},
"category": "Card spend",
"payment_mode": "CARD",
"direction": "debit",
"keywords": [
"spent on HDFC Bank Card",
"Not U"
],
"template": "{currency}.{amount} spent on HDFC Bank Card {masked}{last_four} at {merchantName} on {txnDate}:{txnTime}.Not U?",
"regex": "^\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* spent on HDFC Bank Card \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\s* at \\s*(?<merchantName>[\\s\\S]+?)\\s* on \\s*(?<txnDate>[\\s\\S]+?)\\s*:\\s*(?<txnTime>[\\s\\S]+?)\\s*\\.Not U\\?",
"regex_flags": "i",
"sample": null,
"verified": false,
"source": "iris"
}Other HDFC Card spend formats
Frequently asked questions
What does an HDFC Bank Card spend debit SMS look like?
It follows the pattern “{currency}.{amount} spent on HDFC Bank Card {masked}{last_four} at {merchantName} on {txnDate}:{txnTime}.Not U?”, where the placeholders in braces are the amount, the last digits of the account or card, the date and the merchant or payee.
How do I parse an HDFC Bank Card spend SMS?
First check that the message contains “spent on HDFC Bank Card”, “Not U”. Then match it with this case-insensitive regular expression: ^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* spent on HDFC Bank Card \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\s* at \s*(?<merchantName>[\s\S]+?)\s* on \s*(?<txnDate>[\s\S]+?)\s*:\s*(?<txnTime>[\s\S]+?)\s*\.Not U\?. The named groups give you the amount, the last digits of the account or card, the date and the merchant or payee.
Is this HDFC Bank SMS format verified?
It comes from a production SMS parser and matches real messages, but there is no public redacted sample to show yet.
Does HDFC Bank use more than one Card spend SMS format?
Yes. HDFC 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.