title: Pattern matching in Tcl
body: <p>I have somefile.txt, contains lines like:</p>
  
  <pre><code>{ abc1 } 1
  { cde1 } 101
  { fgh1 } 1
  { ijk1 } 2 
  </code></pre>
  
  <p>its a huge file, i wanted to find only 1st and 3rd line and count them.</p>
  
  <p>I have tried with regexp and lsearch(converting it to list) by <code>{\s\}\s1\n}</code> but its not working. What should I do...?</p>
  
  <p>I have also tried <code>{\s\}\s1}</code> but it prints all 4 lines.</p>