Extract (parse) amount and description from BIZ (Transaction) sms

后端 未结 4 854
心在旅途
心在旅途 2021-01-31 12:00

I am doing below steps.

  1. match sms with regex

  2. if contains specified keyword then get values from sms body like amount,description (reason

4条回答
  •  旧时难觅i
    2021-01-31 12:36

    To detect any transactional message in android :

    "(?=.*[Aa]ccount.*|.*[Aa]/[Cc].*|.*[Aa][Cc][Cc][Tt].*|.*[Cc][Aa][Rr][Dd].*)(?=.*[Cc]redit.*|.*[Dd]ebit.*)(?=.*[Ii][Nn][Rr].*|.*[Rr][Ss].*)"
    

    tested on several bank messages

提交回复
热议问题