using System;
using System.Text.RegularExpressions;
public class Test
{
public static void Main()
{
// your code goes here
string input = "This @#$[ываыв] %is text with some test data %$ dsffs !@#$%";
string pattern = "[-.,(){}@#$%^&*!+=:;/\\[\\]]+";
string replacement = "";
Regex rgx = new Regex(pattern);
string result = rgx.Replace(input, replacement);
Console.WriteLine("Original String: {0}", input);
Console.WriteLine("Replacement String: {0}", result);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CgpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJLy8geW91ciBjb2RlIGdvZXMgaGVyZQoJCXN0cmluZyBpbnB1dCA9ICJUaGlzIEAjJFvRi9Cy0LDRi9CyXSAlaXMgdGV4dCB3aXRoIHNvbWUgdGVzdCBkYXRhICUkIGRzZmZzICFAIyQlIjsKICAgICAgc3RyaW5nIHBhdHRlcm4gPSAiWy0uLCgpe31AIyQlXiYqISs9OjsvXFxbXFxdXSsiOwogICAgICBzdHJpbmcgcmVwbGFjZW1lbnQgPSAiIjsKICAgICAgUmVnZXggcmd4ID0gbmV3IFJlZ2V4KHBhdHRlcm4pOwogICAgICBzdHJpbmcgcmVzdWx0ID0gcmd4LlJlcGxhY2UoaW5wdXQsIHJlcGxhY2VtZW50KTsKCiAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJPcmlnaW5hbCBTdHJpbmc6IHswfSIsIGlucHV0KTsKICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlJlcGxhY2VtZW50IFN0cmluZzogezB9IiwgcmVzdWx0KTsgIAoJfQp9