| about | help | code help+videos | done | prefs |
Given a String, replace each occurrence of "*" in it with the second parameter. If the second parameter includes an "*" then return "Infinite Loop!" instead.asterReplace("Th*s *s *t", "i") → "This is it" asterReplace("Fuzzy Wuzzy was a bear", "X") → "Fuzzy Wuzzy was a bear" asterReplace("Fuzzy Wuzzy h*d no h*ir", "a") → "Fuzzy Wuzzy had no hair" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy