I am absolutely stuck when it comes to regex. I have been trying to modify the following expression to match URLs that begin with “www”. It already matches URLs that begin with http, ftp, and https but not just plain www. I have not had much success on my own.
Regex.IsMatch(text, @"(^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)")
Make this…
into this…