title: If string does NOT contain and REGEX
body: <p>I'm looking for a way to write the following javascript code in applescript: If the condition is false then I want to do something.</p>
  
  <pre><code>var regEx = /\d{5}/g;
  var str = 'This string contains 12345';
  
  if (!regEx.test(str)){
      do something
  }
  </code></pre>
  
  <p>Below is the applescript I started but it doesn't work.</p>
  
  <pre><code>set str to 'This string contains 12345'
  set regEx to &lt;NOT SURE HOW APPLESCRIPT HANDLES THIS&gt;
  
  if string does contains "12345" then
   do something
  end if 
  </code></pre>
  
  <p>In Javascript ! = does not. What is the equivalent in applescript? and how do I handle RegEx?</p>
  
  <p>My overall goal is to find out if the finder window selected DOES NOT contain any 5 digit number combination in the folder name.</p>