I am trying to extract following information :
- Complete account number as in the paragraph (XXXXXXXXXX1234)
- Amount
- Info
- Date
from the following text :
Dear Customer, Thank you for banking with ABC Bank. You have used your Debit Card linked to Account XXXXXXXX1234 for a transaction of INR 404.00 Info.MIN*ABC on 15-08-2012 11:58:41.
I tried using the regular expression answered here, but with no luck. The following is the code i am trying :
let regex = NSRegularExpression.init(pattern: "\d\d?:\d\d", options: nil)
But getting error as "Invalid escape sequence in literal". Thanks for any help.