I am trying to replace numbers in a string with the "N" character. What I've done and works properly is:
    string str = "abc1234def";          
    str = Regex.Replace(g, @"\d+", "N");`
the output of the above will give "abcNdef" since the "1234" will be replaced with "N". The aim now is to replace with "N" every single number so for the above input, the output would be "abcNNNNdef".
Any help would be welcome
 
     
     
    