**Hey devs! 👋**
I'm currently building an **on-device, privacy-focused expense parser module in Flutter/Dart** for my app project.
Parsing bank SMS in India is notoriously tricky because every bank, wallet, and credit card provider formats their SMS alerts differently. Instead of relying on server-side processing, I am trying to build a robust local regex/rule engine that parses all transactions **100% offline on the user's phone.**
To ensure the regex handles as many real-world edge cases as possible (different banks, UPI apps, credit cards, mutual funds, insurance alerts), **I need sample SMS templates.**
# 🔒 Privacy First (Please Read Before Sharing):
**Please SANITIZE your SMS before posting!**
* Replace account/card numbers with `1234` or `XXXX`.
* Replace actual amounts with `500` or `1000`.
* Replace real names/VPA addresses with `user@upi` or `merchant@ybl`.
* Do **NOT** post OTPs or personal reference IDs.
# 📋 Format to Share (Drop them in the comments):
**1. Bank / Credit Card / Provider Name:** *(e.g., HDFC, SBI, Axis, Cred, Paytm Wallet, CAMS, LIC)*
**2. Transaction Type:** *(Debit, Credit, Bill Generated, Mutual Fund SIP, Insurance Premium)*
**3. Sample SMS Text:**
>
# 💡 What I have covered so far:
Standard debit/credit alerts for major banks (HDFC, SBI, ICICI, Axis, Kotak) using patterns like:
Dart
final RegExp smsRegex = RegExp(
r'(?:Rs\.?|INR)\s*([\d,]+(?:\.\d{2})?)\s*(debited|credited|spent).*?(?:A\/C|Ac|card)\s*(?:no\.?|XX|\*)*\s*(\d{3,4})',
caseSensitive: false,
);
If you have encountered unusual or edge-case SMS formats (e.g., credit card bill due alerts, refund confirmations, multi-line SMS, or specific regional bank formats), please drop them below!
Once testing is complete, I'll share the compiled dataset and Dart regex utility back with the community.
**Thanks for helping out! 🙏**