- 임시 커밋

This commit is contained in:
2017-02-08 16:26:29 +09:00
parent 152e6af4e8
commit 31791b2dd7
8 changed files with 260 additions and 17 deletions

View File

@@ -57,6 +57,8 @@ namespace NewsCrawler
Console.WriteLine("Code Search Test");
Console.WriteLine(SearchCode("[fnRASSI]씨트리(047920) 전일대비 6.77% 상승"));
Console.WriteLine(SearchCode("[클릭 e종목]로엔, 본격적으로 시작되는 카카오 시너"));
Console.WriteLine(SearchCode("[클릭 e종목]\"SK텔레콤, 투자심리 개선 가능성 주목해"));
Console.WriteLine(SearchCode("[클릭 e종목]SK하이닉스, 추가 상승 낙관적"));
@@ -260,7 +262,9 @@ namespace NewsCrawler
{
try
{
string strReplace = Regex.Replace(strText, @"(\(|\[|\<).*(\)|\]|\>)", "");
string strReplace = Regex.Replace(strText, @"(\[).*(\])", "");
strReplace = Regex.Replace(strReplace, @"(\().*(\))", "");
strReplace = Regex.Replace(strReplace, @"(\<).*(\>)", "");
string[] words = strReplace.Trim().Split(' ');
string strCodeWord = words[0];