         let yearText = textInRange(match.rangeAtIndex(2))
         month = Int(monthText)
         year = Int(yearText)
+        
+        dump("month: \(month) year: \(year)")
     }
-    
-//    func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
-//        if string == separator {
-//            return false
-//        }
-//        
-//        if string.characters.count == 0 && range.length == 1 {
-//            if range.location == maxLength {
-//                deleteBackward()
-//            }
-//        }
-//        
-//        if(range.length + range.location > maxLength) {
-//            return false
-//        }
-//        
-//        return true
-//    }
     
     private func textInRange(range: NSRange) -> String {
         let text = self.text ?? ""

        let text = self.text ?? ""
        let range = NSRange(location: 0, length: text.characters.count)
        let options = NSMatchingOptions(rawValue: 0)
        guard let match = expirationRx.firstMatchInString(text, options: options, range: range) where match.numberOfRanges < 3 else {
            month = nil
            year = nil
            return

        return rx
    }()
    
    private var month: Int?
    private var year: Int?
    
