question url validation regex


i have following regex does good office relating urls:



((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\))+[\w\d:#@%/;$()~_?\+-=\\\.&]*)`


however, does hoop urls but prefix, ie. stack .com www.google.com match. anyone know i cgange regex caring there prefix not?






edit: does doubt too vague? does need some-more details?






(((https?|ftp|gopher|telnet|file|notes|ms-help):((//)|(\\\\)))?[\w\d:#@%/;$()~_?\+-=\\\.&]*)


i total ()? around protocols vinko vrsalovic suggested, nonetheless regex review perceptibly any string, enlarged current url characters.



my doing i have database i control contents, domain presumably plain text, phone number, url an email address. i looking an easy proceed countenance quarrel i have morally formatted, ie. formulating anchor tags url/email, formatting phone array i have numbers formatted via site. any suggestions?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?