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 "*"
DiskEdit
ruby
p "Red Green Blue".sub(/e/,'*')

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