using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
{
try
{
String text = "Reports\\20200225170617.csv";
Regex pattern = new Regex(@"([1-9][0-9]*)");
MatchCollection resultCollection = pattern.Matches(text);
foreach(var item in resultCollection){
Console.WriteLine("{0}", item);
}
}
catch(Exception ex)
{
Console.WriteLine(ex);
}
}
}
'Web_Application > C#' 카테고리의 다른 글
tdes en/decrypt class (0) | 2020.11.17 |
---|---|
ERROR: should be excluded because its source file '' is under Windows System File Protection. (When Building MSI) (0) | 2019.09.03 |
[c#][linq][winform] combobox query foreach get index, value (0) | 2019.04.23 |
[c#][winform][Linq] 여러개의 콤보박스 선택 유무 체크하기 (0) | 2019.04.18 |
[c#][winform] textbox 숫자만 입력 받기 (0) | 2019.04.18 |