(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| package com.gabrielbauman.gist; | |
| import java.util.regex.Pattern; | |
| public enum CardType { | |
| UNKNOWN, | |
| VISA("^4[0-9]{12}(?:[0-9]{3}){0,2}$"), | |
| MASTERCARD("^(?:5[1-5]|2(?!2([01]|20)|7(2[1-9]|3))[2-7])\\d{14}$"), | |
| AMERICAN_EXPRESS("^3[47][0-9]{13}$"), |