title: Check via RegEx if string contains only Slash(es)
body: <p>I want check if a given string contains only <code>/</code> but any number of occurrences of that. If it's an empty string it should return false.</p>
  
  <p><strong>Examples:</strong></p>
  
  <pre><code>//dlkw8923   =&gt; false
  9            =&gt; false
  ()           =&gt; false
  lasdf//asdf  =&gt; false
  /            =&gt; true
  ///          =&gt; true
  //           =&gt; true
  /   /        =&gt; true (this case is not that important... it does not matter if it doesn't match)
  </code></pre>
  
  <p><strong>What I tried so far:</strong></p>
  
  <pre><code>^[/]+$
  ^[\/]+$
  ^[\//]+$
  ^\/+$
  </code></pre>
  
  <p>I used <a href="https://regex101.com/" rel="nofollow noreferrer">regex101.com</a> to test, but none of it worked.</p>
  
  <p>What did I miss? How can i check if the entire string is made up of <code>/</code>?</p>