The first rule of fight club is...
Description:
"Welcome to Fight Club. The first rule of Fight Club is: you do not talk about Fight Club. The second rule of Fight Club is: you DO NOT talk about Fight Club!"
Fight Club members now have a WhatsApp group. It has been called "Knitting Club" to disguise what it's really about. Members must use the words "Knitting Club" instead of "Fight Club" in all conversations in case prying eyes fall upon a member's chat history.
So for example, if a member wants to message "I had to get 8 stitches on my face after Fight Club last week" they will instead message "I had to get 8 stitches on my face after Knitting Club last week". This will be sure to not cause any suspicion if read by a non-member.
Tyler Durden is not happy! He has found that Fight Club members are slipping up and using the phrase "fight club" despite his rule, especially after a few drinks.
He wants you to write a function that will strip the words "Fight Club" from a text message and replace it with "Knitting Club".
It must work for either upper or lower case. It must also work for multiple occurences of the phrase.
Similar Kata:
Stats:
Created | Nov 12, 2016 |
Published | Nov 12, 2016 |
Warriors Trained | 233 |
Total Skips | 9 |
Total Code Submissions | 346 |
Total Times Completed | 152 |
JavaScript Completions | 152 |
Total Stars | 4 |
% of votes with a positive feedback rating | 81% of 98 |
Total "Very Satisfied" Votes | 67 |
Total "Somewhat Satisfied" Votes | 24 |
Total "Not Satisfied" Votes | 7 |
Total Rank Assessments | 89 |
Average Assessed Rank | 8 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |