title: Does phonegap support regex
body: <p>every body.</p>
  
  <p>Could you tell me whether phonegap support regex? I tried to use regex on iOS Phonegap project, but it didn't run.</p>
  
  <p>For example, I use regex to check if a hyperlink, and it not work</p>
  
  <pre><code>var pattn = '^http[s]?\:\/\/[^\/]*';
  var url = 'http://google.com';
  var regx = new RegExp(pattn, 'gi');
  
  if (url.match(regx)) {
    console.log('Match');
  }
  </code></pre>