由Internet取得百家姓字串,
想將百家姓儲存到資料庫以供程式搜尋使用,
因此想將百家姓切割為每列一姓。
環境:
macOS Sierra (10.12.6)
Sublime Text 3
方法:
在Sublime Text軟體中
點選[FIND] >> [Replace],
點選[Regular expression]按鈕,
在[Find What:]中輸入:(.{1})
在[Eplace With:]中輸入:\1\n
點選[Replace All]按鈕後就完成了

