Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. %s/[^a-zA-Z ]*//g
  2. %s/\(\w\+\)/"\1"/g
  3. %s/[[:space:]]\+/,/g
  4.  
  5. Given:
  6. Croatia 克罗地亚 Lithuania 立陶宛 Slovenia 斯洛文尼亚
  7. Cyprus 塞浦路斯 Luxembourg 卢森堡 Spain 塞班牙
  8.  
  9. Output:
  10. "Croatia","Lithuania","Slovenia",
  11. "Cyprus","Luxembourg","Spain",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement