Advertisement
Willcode4cash

Extract common URLs

Aug 14th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.16 KB | None | 0 0
  1. var regex = new Regex(@"(http|https|ftp)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w.,@?^=%&:/~+#-])?");
  2. MatchCollection matches = regex.Matches(value);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement