title: Regular expression that matches only the root of an relative path
body: <p>im a newbie with RegEx and i cant figure out how to create an regular expression that matches only the data at the root of an relative path.</p>
  
  <p>the regex should match everything at the root. examples:</p>
  
  <pre><code>\info.txt 
  \.htaccess
  \log
  \武警支队.txt
  </code></pre>
  
  <p>but should not match any data from deeper sub-folders like:</p>
  
  <pre><code>\data\db.txt
  \pics\main\info.jpg
  \Всеобщая\การเข้าถึงถูกปฏิเสธ\ใหม่.rtf
  </code></pre>
  
  <p>Any help would be really appreciated!</p>