Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more than one occurrence of 'great', replace the second occurrence with 'awesome'.
textIn = strcat('I am having a great time at summer camp. The camp', ... ' counselors are great and the activities are great. Monday', ... ' we went kayaking and Tuesday we learned archery. Archery was', ... ' great and I hit the bull''s eye which everyone was said was', ... ' really great. -Love Johnny');
Hey Dave! It would be awesome, if there was sentences with more than 2 'great' or words like 'greater'.
Definitively I must learn MORE regexp... :-/ I knew what to do, but I couldn't implement it.
Calculate the Levenshtein distance between two strings
304 Solvers
Least common multiple of many numbers
159 Solvers
Project Euler: Problem 5, Smallest multiple
241 Solvers
Choose the best fitting dominoes
161 Solvers
281 Solvers