Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2015 16:45
Show Gist options
  • Save anonymous/292f2e0ac243e9ce9eb8 to your computer and use it in GitHub Desktop.
Save anonymous/292f2e0ac243e9ce9eb8 to your computer and use it in GitHub Desktop.
Manage your account online:Mobile: PAYMENT INFORMATIONACCOUNT SUMMARY YOUR ACCOUNT MESSAGES ACCOUNT ACTIVITY AUTOPAY IS ONSee Your AccountMessages belowfor details. + 2X Points earned at gas stations 0 + 2X Points earned at restaurants 0 + 2X Points earned at drugstores 0 + 2X Points earned at office supply stores 0 + Points earned on all other Visa purchases 80 = Total points available for redemption 1,177 Use points instantly at checkout at Amazon.com. Or log onto Chase.com to redeem for cash back, gift cards and travel. For more information visit www.chase.com/amazon or call 1-888-247-4080. Earn points on every dollar spent with your Amazon.com Rewards Visa Card. Earn 3 points per $1 on Amazon.com purchases, 2 points per $1 on gas station, restaurant, and drugstore purchases, and 1 point per $1 on all other Visa purchases. Date of Transaction Merchant Name or Transaction Description $ Amount 01/21 AUTOMATIC PAYMENT - THANK YOU -57.34 01/12 NETFLIX.COM NETFLIX.COM CA 7.99 01/15 HEROKU 415-692-4655 CA 19.58
#!/Users/tim/.rvm/rubies/ruby-2.1.5/bin/ruby
File.open("chase_amazon_text3.txt", "r") do |f|
f.each_line do |line|
puts "#{$1}, #{$2}, #{$3}" if line =~ /^(\d{2}\/\d{2}) (.*) (\d+\.\d+)/
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment