Giter Site home page Giter Site logo

regex-card-statement's Introduction

Regex for Payment Card Bank Statement Lines

This is a regular expression for credit or debit card bank statement lines in Czech:

(Nákup|Kredit|Výběr z bankomatu): (?<merchant>.+), (?<country>\w{2,3}), dne (?<day>[123]?\d).(?<month>1?\d).(?<year>2\d{3}), částka  (?<amount>\d+.\d{2})( (?<currency>\w{3}))?
  • (Nákup|Kredit|Výběr z bankomatu): is a constant identifying a payment card statement line
  • (?<merchant>.+), is the merchant provided string (name, address, postal code)
    • Sometimes, the name and address are separated with two spaces
  • (?<country>\w{2,3}), is a two- or three-letter ISO country code
  • dne is a constant preceeding the date triplet
  • (?<day>[123]?\d). day number limited to 0-39 to avoid false positives
  • (?<month>1?\d). month number limited to 0-19 to avoid false positives
  • (?<year>2\d{3}) year number limited to the 2000's to avoid false positives
  • , částka is a constant preceeding the amount and currency code
  • (?<amount>\d+.\d{2}) is the amount with two decimal places precision
  • (?<currency>\w{3}) is the three letter currency code

To-Do

regex-card-statement's People

Contributors

tomashubelbauer avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.