Implement a replace-text-regex writer command as specified in the attached file (that shall also be used as command line help file).