Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Match m = Regex.Match(htmlSourceString, "href=[\"\'](http:\/\/|\.\/|\/)?\w+(\.\w+)*(\/\w+(\.\w+)?)*(\/|\?\w*=\w*(&\w*=\w*)*)?[\"\']");
- if (m.Success)
- {
- Console.WriteLine("values = " + m);
- }
- Match m = Regex.Match(htmlSourceString, "href=[\"\'](http:\/\/|\.\/|\/)?\w+(\.\w+)*(\/\w+(\.\w+)?)*(\/|\?\w*=\w*(&\w*=\w*)*)?[\"\']");
- Console.Write("values = ");
- while (m.Success)
- {
- Console.Write(m.Value);
- Console.Write(", "); // Delimiter
- m = m.NextMatch();
- }
- Console.WriteLine();
Add Comment
Please, Sign In to add comment