title: How can I split this regex up to make more readable?
body: <p>and still keep it in the object literal:</p>
  
  <pre><code>url:       /:\/{0,3}(www\.)?([0-9.\-A-Za-z]{1,253})([\x00-\x7F]{1,2000})$/,
  </code></pre>
  
  <p>In addition how can I simplify it.</p>
  
  <p>It is just a mess in the current state. I'm not worried about accuracy right now.</p>
  
  <p>Here is my try from Crockford's book:</p>
  
  <pre><code>makeRegex: function () {
      var parse_url = /^(?:([A-Za-z]+):)?(\/{0,3})
                      ([0-9.\-A-Za-z]+)
                      (?::(\d+))
                      ?(?:\/([^?#]*))
                      ?(?:\?([^#]*))
                      ?(?:#(.*))?$/; 
  },
  </code></pre>