- 임시 커밋
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user