title: Regex pattern to match this string
body: <p>I need to match the below type of strings using a regex pattern in javascript.</p>
  
  <pre><code>E.g. /this/&lt;one or more than one word with hyphen&gt;/&lt;one or more than one word with hyphen&gt;/&lt;one or more than one word with hyphen&gt;/&lt;one or more than one word with hyphen&gt;
  </code></pre>
  
  <p>So this single pattern should match both these strings:</p>
  
  <pre><code>1. /this/is/single-word
  2. /this/is more-than/single/word-patterns/to-be-matched
  </code></pre>
  
  <p>Only the slash (/)and the 'this' in the beginning are consistent and contains only alphabets.</p>