感谢你:兄弟:)
现在还有你这么好地人,非常感谢!我的e_mail:[email protected]谢谢:)^_^
现在还有你这么好地人,非常感谢!我的e_mail:[email protected]谢谢:)^_^
解决方案 »
- 如何根据客户端文件路径,直接上传文件到服务器
- 一个小问题帮忙看看呀!!!
- 求助:我用的进VS2005,以前使用正常,可现在运行时就会出现一个微软的CLR调试器?什么意思?
- C# 如何将图片文件转换为二进制存入sql2000数据库
- winform 如何让 form2更改form1中listbox选中的值
- 用程序后,如何用webbrowser 浏览 带Cookie页面?
- 为什么我设计的窗体不见了,程序一样可以运行
- .net 3.5 HttpRequest 请求网址 url 如何不转义
- c# 执行一条Dos 指令 ???
- 怎么判断一个网卡是否是好的?
- 知道assembly name和该assembly里面的某个class name 怎么知道该class 对应的NameSpace?
- 谁有Dotfuscator的注册码????
[email protected]
[email protected]
致以诚至的感谢!
也给我一份,好吗?多谢。
学习下,谢谢
[email protected]
谢谢~~~~
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
using System.IO;
using System.Net;
using System.Text.RegularExpressions;class AppMain
{
static void Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Error: Missing URL");
return;
}
StreamReader reader = null;
try
{
WebRequest request = WebRequest.Create(args[0]);
WebResponse response = request.GetResponse();
reader = new StreamReader(response.GetResponseStream());
string content = reader.ReadToEnd();
Regex regex = new Regex(
"\\w+@\\w+(\\.\\w+)+",
RegexOptions.IgnoreCase
);
MatchCollection matches = regex.Matches(content);
foreach (Match match in matches)
{
Console.WriteLine(match.Groups[0]);
}
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
finally
{
if (reader != null)
reader.Close();
}
}
}自己也随便写了一个:)不过是命令行下的:)
[email protected]
还有吗?也给我一份啊
[email protected]
[email protected]
谢谢
谢谢
中文匹配: /^[\u4E00-\u9FA0]+$/"^\\d+$" //非负整数(正整数 + 0)
"^[0-9]*[1-9][0-9]*$" //正整数
"^((-\\d+)|(0+))$" //非正整数(负整数 + 0)
"^-[0-9]*[1-9][0-9]*$" //负整数
"^-?\\d+$" //整数
"^\\d+(\\.\\d+)?$" //非负浮点数(正浮点数 + 0)
"^(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$" //正浮点数
"^((-\\d+(\\.\\d+)?)|(0+(\\.0+)?))$" //非正浮点数(负浮点数 + 0)
"^(-(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*)))$" //负浮点数
"^(-?\\d+)(\\.\\d+)?$" //浮点数
"^[A-Za-z]+$" //由26个英文字母组成的字符串
"^[A-Z]+$" //由26个英文字母的大写组成的字符串
"^[a-z]+$" //由26个英文字母的小写组成的字符串
"^[A-Za-z0-9]+$" //由数字和26个英文字母组成的字符串
"^\\w+$" //由数字、26个英文字母或者下划线组成的字符串
"^[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)+$" //email地址
"^[a-zA-z]+://(\\w+(-\\w+)*)(\\.(\\w+(-\\w+)*))*(\\?\\S*)?$" //url