Q: I want a regular expression to validate the URL but i wanna to allow this character(~)the Tilda
something like this url:
http://stackoverflow.com/questions/~/
allowing http or without http
thanks in advance
EDIT:
i find a perfect one finally:
(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?
but i wanna to allow the user to enter the url with the protocol or without it to prevent any confusion how to do that.
To allow non-consecutive tildes:
To allow tildes anywhere: