Compare a text file with a pattern of text in c#?
<p>I have compared a text file with a pattern like <code>".."</code>   It is writing the whole line in to the log like this...</p>

<pre><code>insert into depdb..fin_quick_code_met
</code></pre>

<p>But i need to write this alone
 <code>depdb</code> 
   or 
 <code>depdb..fin_quick_code_met</code></p>

<p>i.e) i need the word alone</p>

<pre><code>if (line.contains(".."))
dest.WriteLine("LineNo : " + counter.ToString() + " : " +"           "+ line.TrimStart());
</code></pre>

<p>How to write this word alone?
Any suggestion?</p>
