Skip to content

Instantly share code, notes, and snippets.

@brandon-beacher
Created December 14, 2011 05:35
Show Gist options
  • Save brandon-beacher/1475412 to your computer and use it in GitHub Desktop.
Save brandon-beacher/1475412 to your computer and use it in GitHub Desktop.
/(\d{3})-(\d{3})-(\d{4})/.match("678-248-2440")
=> #<MatchData "678-248-2440" 1:"678" 2:"248" 3:"2440">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment