Skip to content

Instantly share code, notes, and snippets.

@yunustek
Created October 15, 2018 06:41
Show Gist options
  • Save yunustek/0b92b21a131161459c43dd6c5a3a2e60 to your computer and use it in GitHub Desktop.
Save yunustek/0b92b21a131161459c43dd6c5a3a2e60 to your computer and use it in GitHub Desktop.
NSStringMask Mask Patern for Phone Number
// NSStringMask Mask Patern for Phone Number Format String
// - --- --- -- --
(\d{1}) (\d{3}) (\d{3}) (\d{2}) (\d{2})
// NSStringMask Mask Patern for Phone Number Format String
// - (---) --- -- --
(\d{1}) \((\d{3})\) (\d{3}) (\d{2}) (\d{2})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment