일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- tls
- coding-test
- logging
- mysql
- Binding
- dotNET
- string
- csharp
- programmers
- Github
- commit
- 코딩테스트
- Process
- convert
- IValueConverter
- ListView
- log
- nullable
- C#
- algorithm
- WPF
- windows10
- chashtag
- Coding
- Microsoft
- git
- Visual Studio
- File
- windows
- .net
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 |