Bank of Baroda Cash deposit credit SMS format

BOB_CASH_DEPOSIT_V1

Last updated

Bank of Baroda·Cash depositBANKCreditVerified

Quick answer

A Bank of Baroda Cash deposit credit SMS looks like this: “Rs.10000.00 deposited in cash to A/c XX234567 on 20-11-2024. AvlBal:Rs45000.00 -Bank of Baroda” 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 and the date; everything else is fixed text, so it can be matched with the regex below.

Template

currency.amount deposited in cash to A/c on date. AvlBal:skip -Bank of Baroda

Sample SMS

Template matches this sample

Rs.10000.00 deposited in cash to A/c on 20-11-2024. AvlBal:Rs45000.00 -Bank of Baroda

FieldExtracted value
currencyRs
amount10000.00
XX23
4567
date20-11-2024
skipRs45000.00

Compiled regex

flags: i
^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* deposited in cash to A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\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*\. AvlBal:\s*(?<skip>[\s\S]+?)\s* -Bank of Baroda
JSON/api/templates/bob-cash-deposit-v1
{
  "id": "bob-cash-deposit-v1",
  "name": "BOB_CASH_DEPOSIT_V1",
  "bank": {
    "code": "BOB",
    "name": "Bank of Baroda",
    "slug": "bank-of-baroda"
  },
  "category": "Cash deposit",
  "payment_mode": "BANK",
  "direction": "credit",
  "keywords": [
    "deposited in cash",
    "Bank of Baroda"
  ],
  "template": "{currency}.{amount} deposited in cash to A/c {masked}{last_four} on {date}. AvlBal:{skip} -Bank of Baroda",
  "regex": "^\\s*(?<currency>[A-Z]{2,4})\\s*\\.\\s*(?<amount>[\\d,]+(?:\\.\\d{1,2})?)\\s* deposited in cash to A/c \\s*(?<masked>[\\s\\S]+?)\\s*\\s*(?<last_four>\\d{4})\\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*\\. AvlBal:\\s*(?<skip>[\\s\\S]+?)\\s* -Bank of Baroda",
  "regex_flags": "i",
  "sample": "Rs.10000.00 deposited in cash to A/c XX234567 on 20-11-2024. AvlBal:Rs45000.00 -Bank of Baroda",
  "verified": true,
  "source": "pennywise"
}

Frequently asked questions

What does a Bank of Baroda Cash deposit credit SMS look like?

Rs.10000.00 deposited in cash to A/c XX234567 on 20-11-2024. AvlBal:Rs45000.00 -Bank of Baroda — the parts that change are the amount, the last digits of the account or card and the date.

How do I parse a Bank of Baroda Cash deposit SMS?

First check that the message contains “deposited in cash”, “Bank of Baroda”. Then match it with this case-insensitive regular expression: ^\s*(?<currency>[A-Z]{2,4})\s*\.\s*(?<amount>[\d,]+(?:\.\d{1,2})?)\s* deposited in cash to A/c \s*(?<masked>[\s\S]+?)\s*\s*(?<last_four>\d{4})\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*\. AvlBal:\s*(?<skip>[\s\S]+?)\s* -Bank of Baroda. The named groups give you the amount, the last digits of the account or card and the date.

Is this Bank of Baroda 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.

Bank of Baroda Cash deposit credit SMS format (BOB_CASH_DEPOSIT_V1) | Iris SMS Templates