I would like to know what regular expression I can use, I have a txt from which I have to remove the vowels labeled (Á, É, Í, Ó, Ú), single lines (',') and replace with the same vowel without tilde or space (_) but without changing the fact that it occupies a single space in the txt file. I used this definition:
System.Text.RegularExpressions.Regex reg = new System.Text.RegularExpressions.Regex("[^a-zA-Z0-9]");
reg.Replace(str, " ");
But replacing a typed letter transforms the letter but adds a space to the right and does not cover the single tilde.