Stuck on Spinal Tap Case [SOLVED]

Did a quick try and my final code does this (pseudocode):

Add space before each capital letter.
Change string to lowercase.
Replace non-letters with space.
Trim spaces (strings have such method).
Replace spaces with dashes.

There are ninjas who can write one line regexes, but I’m not one of them :unamused:

2 Likes