title: Regex eError when using {1}+ possessive quantifier in JavaScript regex
body: <p>Since I am learning Javascript and Express.js at the same time I was experimenting around with regular expressions when making a get request</p>
  
  <p>To familiaries my self with regular expressions I used this <a href="http://docs.oracle.com/javase/tutorial/essential/regex/quant.html" rel="nofollow">chart</a> (also reproduced below)</p>
  
  <pre><code>Greedy  Reluctant   Possessive  Meaning
  X?      X??         X?+         X, once or not at all
  X*      X*?         X*+         X, zero or more times
  X+      X+?         X++         X, one or more times
  X{n}    X{n}?       X{n}+       X, exactly n times
  X{n,}   X{n,}?      X{n,}+      X, at least n times
  X{n,m}  X{n,m}?     X{n,m}+     X, at least n but not more than m times
  </code></pre>
  
  <p>My question is that how can I get a regex to match a url if it only has one <code>/</code>.<br>
  In other words, it would only match the default url <code>localhost:1337/</code></p>
  
  <pre><code>app.get(/\/{1}/, function (req, res) {
      res.render("index"); 
  });
  </code></pre>
  
  <p>However, my current regex above matches other pathnames(ie. <code>localhost:1337/home/login</code>) because now I know it uses the greedy quantifier</p>
  
  <p>After reading more on regular expressions, I changed the quantifier so its possessive.<br>
  <code>/\/{1}+/</code></p>
  
  <p>But then express gave this error: </p>
  
  <pre><code>Syntax Error: Invalid Regular Expression: /\/{1}+/: Nothing to Repeat
  </code></pre>
  
  <p>So is my syntax for the regular expression wrong?</p>