Wednesday 16 April 2014

Remove the double Quotes ( " ) or special character using String methods in AX

Static str stripStrings(str _InputString)

{

   str message;

   message =  System.Text.RegularExpressions.Regex::Replace(_InputString, @"[\W_]", "");

   return message;


}
-------------------or------------------
Hi,

Just use the below skeleton to remove the " ( double quotes ) orspecial character from the sample string.

strRem('Sample String','*');

* may be -" / or any special character

2 comments: