Finding date & time in NSString using Regex
问题 I want to do something similar to this question: regular expression in ruby for strings with multiple patterns But I want to do it Objective-C . Basically I want extract date and time from a string with a date and time after the @ sign. For example I have a string: Feed the Rabbits @12 , I want to extract the date and time after the @ , the problem is that the string can vary, for example it could @12:00 , @04/02/12 , @04/02/12 12:00 , @04/02/12 12:00 or just @04/02/12 . Heres my current code