title: Check if string contains regex
body: <p>I have a string of text and I'm looking to check if the string contains a certain pattern. i.e. [Ref:number/number/number]</p>
  
  <pre><code>var myStr = "This is a string [Ref:1234/823/2]";  //Yes, has regex pattern
  var myStr2 = "This is another sample string"; //No, regex pattern not present
  </code></pre>
  
  <p>Any ideas what the regex is for this pattern is: [Ref:1234/823/2]?</p>
  
  <p>The words Ref will always be present followed by a colon, then 3 groups of digits separated by a forward slash and will be contained within square brackets.</p>
  
  <pre><code>[Ref:&lt;digits&gt;/&lt;digits&gt;/&lt;digits&gt;]
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks,</p>