Regex is definitely not my strong front and I am trying to validate that the input is a valid URL. A search on google yields tons of variations, all of which seem to be very basic and fail a valid url quite easily. Does anyone have a reliable pattern to validate a url? Appreciate it!
$urlpattern = "((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)"; Code (markup): One of several weapons in my arsenal.