View Problem

Replace all regex matches in a string with a static string

Transform "She sells sea shells" into "She X X shells" by replacing /se\w+/ with "X"
DiskEdit
python
transformed = re.sub(r'se\w+', 'X', 'She sells sea shells')

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