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)
DiskEdit
clojure
(.replaceFirst (re-matcher #"e" "Red Green Blue") "*")

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