[C#] ハイフンなしの電話番号からハイフン付き電話番号を復元する
[PHP] ハイフンなしの電話番号からハイフン付き電話番号を復元する
上記のPHP実装をC#用に書き換えました。
Program.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
namespace FormatPhoneNumber
{
class Program
{
static void M…