http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?
~
(チルダ)を含めて検出したい場合は、下記の正規表現を利用します。http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=~]*)?
(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)
private void button1_Click(object sender, EventArgs e)
{
Regex reg = new Regex(@"http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?");
Match match = reg.Match(textBox1.Text);
if (match.Success == true) {
textBox2.Text = "マッチしました。";
}
else {
textBox2.Text = "マッチしませんでした。";
}
}