How it works
I have an input field to enter the URL of a Website and i wanna check it and if the URL is OK i will give the inputfield a class(\"vali
Remove the |www\.?
|www\.
^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$