I am allowing the user to copy a registration key from my website, the NSStirng is then saved to the clipboard and when the application opens with the registration dialog I check the clipboard right away using this code -
NSString *registrationCode = [UIPasteboard generalPasteboard].string;
Now that I have the value from the pasteboard I want to check its format.. which should be something like AAAA-AAAA-AAAA-AAAA so in essance No numbers, no spaces (including at the front and end), no lower case, no special characters... just uppercase characters. How could I achive this?