I'm trying to make an email scraper that can read your emails and put transactions into a google sheet for easy budgeting.
The format of the email is as such:
This is an Alert to help you manage your credit card account ending in 0000.
As you requested, we are notifying you of any charges over the amount of ($USD) 0.01, as specified in your Alert settings. A charge of ($USD) 44.44 at UBER * EATS PENDIN has been authorized on Apr 34, 2073 at 2:27 PM ET.
Do not reply to this Alert.
If you have questions, please call the number on the back of your credit card, or send a secure message from your Inbox on www.bank.com.
To see all of the Alerts available to you, or to manage your Alert settings, please log on to www.bank.com.
I'm trying to capture just the price (44.44), the company (Uber Eats), the date (Apr 34, 2073) and the time (2:27 PM ET).
I have this as my regex:
/A charge of\s\W+\w+\W+\s(.+?(?=at))\w+\s(.+?(?=has))\w+\s\w+\s\w+\s\w+\s(.+?(?=at))\w+\s(.+?(?=ET))/g
however it's no longer working despite it matching in regex101.
Any thoughts on how I can get it to match in google scripts so I can scrape the emails? Everything else works