Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(\w{5}\s\w{6}\s[a-zA-Z0-9]{3}-[0-9]{7}-[0-9]{7}|\w{5}\s\w{6}\s\d{9})|(\d{2}\/\d{2})((?=.*[a-zA-Z])[:&-\.'\/\*#\w\s0-9]+?)(-*[,\d{1,4}]*\.\d{2}[^%])
/
gm

Description

Chase Bank Credit Card Transaction Parser - Matches on transaction Date, Description, Amount, and (if it's a Chase Amazon card) the Amazon Order Numbers and total Amazon Rewards Points!

Submitted by anonymous - 5 years ago