title: How to check URL contains http using JQuery and RegEx
body: <p>How can I check and add http (if it does not exist) in given url using jQuery and RegEx?</p>
  
  <p>I tried the following:</p>
  
  <pre><code>jQuery("#text_box_url").blur(function() {
      if (jQuery(this).val()) {
          if(jQuery(this).val().match(/~^(?:f|ht)tps?:/))
              jQuery(this).val("http://"+jQuery(this).val());
      }
  });
  </code></pre>
  
  <p>Thanks in advance.</p>