Skip to content

Instantly share code, notes, and snippets.

View sandeepsh3090's full-sized avatar

sandeep kumar sharma sandeepsh3090

  • Punchh Tech
  • Jaipur
View GitHub Profile
PHONE_REGEX @"([+1]{2})([1-9]{1})[0-9]{9}?|([1-9]{1})[0-9]{9}|^$"
This regex check for following formates +1xxxxxxxxxx (+11234567890)
xxxxxxxxxx (1234567890)
if phone is optional(nil phone number)
@sandeepsh3090
sandeepsh3090 / Model+AdditionalParam.h
Created November 24, 2016 09:23
Objective-C Object Association for JSON Model
@interface Model (AdditionalParam)
@property (nonatomic, strong) NSString <Optional> * new_key_name;
@end