Skip to content

Instantly share code, notes, and snippets.

@mogya
mogya / gist:77bacad211389f739a3d
Last active Aug 31, 2017 — forked from kennyj/gist:4966002
ハイフン付き電話番号に分割
View gist:77bacad211389f739a3d
# encoding: utf-8
module TelSplitter
MAP = {
# 市外局番 , 市内局番の桁数のマップ
# http://www.soumu.go.jp/main_sosiki/joho_tsusin/top/tel_number/number_shitei.html のデータを利用
# 固定電話以外の桁数は適当です...
'050' => 4, # IP電話
'070' => 4, # 携帯電話/PHS
'080' => 4, # 携帯電話
You can’t perform that action at this time.