I'm writting an iOS app that has a signup section. My client has these awful rules about validation that's driving me crazy. The newest rule is like this: Do not accept more than 3 chars in alphabetical order such as: "abcd", "eFgH", "jklM".
But i can accept numbers in sequence like "1234", "3456"...
To solve these kind of problemas I'm already using NSPredicate, and NSRegularExpression. But I have no idea of a regex to identify these chars, so I'm asking for your help.
Do anyone have an idea of how to solve this problem?