Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#Google Sheets, 33 Bytes
Anonymous worksheet function that takes input from cell A1 and outputs to the calling cell
A1
=RegExReplace(A1,"(.)(.)\b","$2$1
-2 Bytes Thanks to @KevinCruijssen for the use of (.) over (\w)
(.)
(\w)
#Google Sheets, 3533 Bytes
=RegExReplace(A1,"(\w.)(\w.)\b","$2$1
#Google Sheets, 35 Bytes
=RegExReplace(A1,"(\w)(\w)\b","$2$1