Exemple #1
0
        private string Replace(string text, string find, string replacement, bool mcase, bool regularEx)
        {
            string result = text;

            if (regularEx)
            {
                result = StringOperations.RegularReplace(result, find, replacement, mcase);
            }
            else
            {
                result = StringOperations.CommonReplace(result, find, replacement, mcase);
            }
            return(result);
        }