title: Visual studio regex pattern does not work : ^.*Foo[^.,]\(+.*$
body: <p>I have following lines of code ,</p>
  
  <pre><code>int Foo(char);
  
  int Foo()
  {
  //do something
  }
  
  int FooBar(char, char);
  foo.Get();
  fooBar.Get();
  m_FooBar.Get();
  case foo:
  fooBar(x,y);
  </code></pre>
  
  <p>I want to search only for function reference, declaration and definition with 'Foo' name. Only four of the above lines to be shown in result</p>
  
  <ol>
  <li>int Foo(char); </li>
  <li>int Foo()  </li>
  <li>int FooBar(char, char); </li>
  <li>fooBar(x,y);</li>
  </ol>
  
  <p>I tried </p>
  
  <p><code>^.*Foo[^.,]\(+.*$</code></p>
  
  <p>But it also selected <strong><em>case Foo:</em></strong></p>
  
  <p>Whats wrong with this regex?</p>