Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save telekineticyeti/c1d6d4889a910d61e5cbd5829ad7197c to your computer and use it in GitHub Desktop.
Save telekineticyeti/c1d6d4889a910d61e5cbd5829ad7197c to your computer and use it in GitHub Desktop.
Extract the Time/Date, Transaction ID, Amount, Currency and Merchant Name from a Pypal transaction email. Useful regex to use in automation services like Zapier.
(\d{1,2} \w+ \d{4} \d{1,2}\:\d{1,2}\:\d{1,2} \w{3})\s+Transaction ID:\s+([\d\w]*)[\S\s.]*(?:You sent a payment of )[\$\£]?(\d+\.\d+) (\w{3}) to (.*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment