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
python
print re.sub(r'e', '*', 'Red Green Blue', 1)
ExpandDiskEdit
erlang
{ok, Replaced, _} = regexp:sub("Red Green Blue", "e", "*"),
DiskEdit
erlang 12B3+
re:replace("Red Green Blue", "e", "*", [{return, list}]).
DiskEdit
clojure
(.replaceFirst (re-matcher #"e" "Red Green Blue") "*")

Submit a new solution for python, erlang, or clojure
There are 11 other solutions in additional languages (cpp, fantom, fsharp, go ...)