title: Validate domain name
body: <p>I have a text box where the user can enter an URL, I would like to validate the user input such as the url is in the same domain as the application (specified in web config).</p>
  
  <p>i would like  to use javascript to validate this with regular expressions.</p>
  
  <p>The domain name is "http://www.example.com" and user input that i m expecting is "http://www.example.com/folder".</p>
  
  <p>the domain name is stored in the Webconfig AppSettings sections. </p>