Reverse words in a sentence preserving special characters
Filed under Ivanti
The question
Given a sentence string, reverse each individual word while keeping the positions of all special characters and punctuation unaltered.
No write-up yet. Related questions below have one.
Related Ivanti questions
Collected from public candidate posts and coding forums. Updated Nov 2026.