정규식

string input = @"특수문자 !@#$%^& 제거 합시다~~...!!!";
input = Regex.Replace(input, @"[^a-zA-Z0-9가-힣]", "", RegexOptions.Singleline);
Debug.WriteLine(input);

 

 

결과값

특수문자제거합시다

+ Recent posts