Skip to content

Instantly share code, notes, and snippets.

@328
Created July 27, 2016 02:19
Show Gist options
  • Select an option

  • Save 328/73aafe308852b95ef708026cbe442c35 to your computer and use it in GitHub Desktop.

Select an option

Save 328/73aafe308852b95ef708026cbe442c35 to your computer and use it in GitHub Desktop.
電話番号からハイフンを取るruby script
hoge = '000-0000-0000'
hoge.delete('-')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment