Action Replace

Hello everyone!
I want make a action than read one text with 160 characters and replace the letters with accents by letters without accents.
Example: Replace(message,","e"), Replace(message,","a").

Best Regards, Paulo Torres

Hi Paulo, you gave the answer yourself :)
The easiest way to do it is with the replace() function.

Replace(Replace(Replace(Replace(Replace(message,"á","a"),"à","a"),"ã","a),"â","a",)"é","e") (... and so on)

If you feel 1337 today and would like to do this dinamically... You can always build an extension.

static string RemoveDiacritics(string stIn) {
  string stFormD = stIn.Normalize(NormalizationForm.FormD);
  StringBuilder sb = new StringBuilder();

  for(int ich = 0; ich < stFormD.Length; ich++) {
    UnicodeCategory uc = CharUnicodeInfo.GetUnicodeCategory(stFormD[ich]);
    if(uc != UnicodeCategory.NonSpacingMark) {

Source: stackoverflow

Or toy with regex perhaps
Thank you very much António and others guys :)
I was doing with function regex_replace but this function replaced lowercase letters to uppercase... Not serve for me!
I don't know how maked many replaceds in one expression and is easy :)

Thanks =)
Don't think I went this 1337 - - but, definitely went somewhere.

XIF .Net Version of the code referenced by @António Chinita here