title: meaning of dollar symbol in regular expression
body: <p>Can you help me what is the usage of <code>$</code> in the following regular expression; I don't understand what is the usage? Does it mean just the end of string? </p>
  
  <pre><code>p.match(/^\.\.?($|\/)/)
  </code></pre>