title: Print .pdf filenames from a directory with Boost.regex
body: <p>This is my code:</p>
  
  <pre><code>path Path = "e:\\Documents\\";
  boost::regex reg("(*.pdf)");
  for(recursive_directory_iterator it(Path); it != recursive_directory_iterator(); ++it)
  {
      if(boost::regex_search(it-&gt;string(), reg))
      {
          cout &lt;&lt; *it &lt;&lt; endl;
      }
  }
  </code></pre>
  
  <p>But I always get and Abort() error in Visual Studio, after running the program, the problem is in this line:</p>
  
  <pre><code>boost::regex reg("(*.pdf)");
  </code></pre>
  
  <p>Am I not declaring the regex object good ?</p>