I have a regex to replace a certain pattern with a certain string, where the string is built dynamically by repeating a certain character as many times as there are characte
%s/\v(hello)*/\=repeat('-',strlen(submatch(0)))/g