View Problem

Replace the first regex match in a string with a static string

Transform "Red Green Blue" into "R*d Green Blue" by replacing /e/ with "*"
ExpandDiskEdit
scala
val replaced = "Red Green Blue".replaceFirst("e", "*")

Submit a new solution for scala
There are 14 other solutions in additional languages (clojure, cpp, erlang, fantom ...)