WordService Extension: Remove white space



I just found out about WordService and wonder if there’s the possibility to add custom scripts, so that everything’s in one place, nice and tidy. I’m frequently encountering l e t t e r s p a c e d t e x t and would like to quickly remove the white space with a shortcut. This might be a neat function to add to WordService altogether. Preferably with the option to separate the words if there’s a capital letter in the string.

The RegEx for it: (?<=\s[\S+])\s(?=[\S+]\s*(?=(\s|,|\.|;)))(?![A-Z])


It’s not possible to extend WordService but it’s possible to create services via Automator, e.g. a shell script might apply the regex to the selected text that way.