URL « Regular Expressions « JavaScript Tutorial






26.8.URL
26.8.1.Use regular expression to validate the URL