반응형 숫자만 추출1 C# 문자열에서 숫자만 추출 string str = "1q2w3e4r!"; string transStr = Regex.Replace(str, @"\D", ""); Console.WriteLine(transStr); Console.ReadLine(); 2021. 12. 7. 이전 1 다음 반응형