title: Regex that matches directory path excluding filepath
body: <p>I'm looking for a regex pattern that I need for IIS. Basically I want it to match any directory path but reject file paths. I've searched all over with little luck.</p>
  
  <p>Example: Match: /directory/content/css/
           Match: /directory/content/css
           Reject: /directory/content/css/main.css
           Reject: /directory/content/css/main.<em>anything</em></p>
  
  <p>!--Due to feedback I've made some changes (Apologies this is my first time on the forum)--!</p>
  
  <p>So far I've put together this pattern: <code>^(\/.*)(.*)*[^.*]$</code>
  It appears to start out ok accepting anything starting with / but it still accepts extensions. </p>
  
  <p>Thanks</p>