[#130] Added `global` option to replace all `~`.