" + String.Join("|", KeyTypes) + ")";
tmpCode = Regex.Replace(tmpCode, "\\b" + tmpKeyTypes + "\\b(?${replacethis}");
lineNum = 0;
foreach (string m in thisChar)
{
tmpCode = tmpCode.Replace("[ReplaceChar" + lineNum++ + "]", "" + m.ToString() + "");
}
lineNum = 0;
foreach (string m in thisString)
{
tmpCode = tmpCode.Replace("[ReplaceString" + lineNum++ + "]", "" + m.ToString() + "");
}
lineNum = 0;
foreach (string m in thisComment)
{
tmpCode = tmpCode.Replace("[ReplaceComment" + lineNum++ + "]", "");
}
// Replace Numerics
tmpCode = Regex.Replace(tmpCode, "(\\d{1,12}\\.\\d{1,12}|\\d{1,12})", "$1");
if (replaceEnter == true)
{
tmpCode = Regex.Replace(tmpCode, "\r", "");
tmpCode = Regex.Replace(tmpCode, "\n", "
" + Environment.NewLine);
}
tmpCode = Regex.Replace(tmpCode, " ", " ");
tmpCode = Regex.Replace(tmpCode, "\t", " ");
// Create Output
tmpOutput = "" + Environment.NewLine;
tmpOutput += "" + Environment.NewLine;
tmpOutput += tmpCode;
tmpOutput += "
" + Environment.NewLine;
}
return tmpOutput;
}
}
}