c# 에서 보안 작업으로 특수문자 or 기타 작업으로 특수문자만 오타 등의 제거가 필요한 경우가 있다.
- Namespace : System.Text.RegularExpressions
- Class : Regex
- Method :
public static string Replace( string input, string pattern, string replacement ) |
- 숫자, 한글(모음,자음 모두 정확한게 입력), 영문 인 경우를 빼고 replace 처리
input = Regex.Replace(input, @"[^a-zA-Z0-9가-힣]", "")