I want to get all the websites from HTML code. The problem is that I have a regex which takes all the URLs but there needs to be www
in the address. What kind of regex I need to use to get the URLs without www
in the content?
update: The regex I am using is:
string anchorPattern =
@"(?<Protocol>\w+)://(?<Domain>[\w@][\w.:@]+)/?[\w.?=%&=\-@/$,&+]*'";