일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- Binding
- 코딩테스트
- windows
- convert
- Visual Studio
- nullable
- git
- Coding
- tls
- Process
- csharp
- WPF
- algorithm
- mysql
- string
- Github
- windows10
- coding-test
- commit
- Microsoft
- logging
- C#
- .net
- programmers
- ListView
- dotNET
- File
- log
- IValueConverter
- chashtag
Archives
- Today
- Total
CHashtag
[C#] [Regex] 문자열에서 특수문자 제거하기 본문
반응형
using System.Text.RegularExpressions;
public string RemoveSpecialCharacterFromString(string str)
{
return Regex.Replace(str, @"[^a-zA-Z0-9가-힣]", string.Empty, RegexOptions.Singleline);
}
반응형
'C#' 카테고리의 다른 글
[Visual Studio] 빌드 속도 높이는 방법 (0) | 2022.03.10 |
---|---|
[C#] log4net 사용방법 (0) | 2022.03.04 |
[C#] 랜덤한 ip 생성하기 (ipv4) (0) | 2022.01.25 |
[C#] .NET 4.5이하에서 코드수정없이 TLS 1.2 활성화 (0) | 2022.01.12 |
[Visual Studio 2022] the project doesn't know how to run the profile 해결방법 (0) | 2022.01.09 |