2010-08-21 12:08:01
sedo
View Mode: Normal | Article List
May, 2006 | 1

获取Google/Yahoo/Baidu搜索结果数

[ 2006-05-30 21:24:57 | Author: 振华 ]
输入一个关键字,能立刻得到Google、Yahoo或baidu或其他一切搜索引擎的搜索结果数.
见:http://zhenhua.org/article.asp?id=343

正则 匹配介于两者之间

[ 2006-05-30 21:22:28 | Author: 振华 ]
1.包含开始和结束字符串
开始字符串[\\W*\\w*]*结束字符串

2.不包含开始和结束字符串,只取中间的内容
(?<=开始字符串).*?(?=结束字符串)

3.
 String str = "[img]http://xxxxx.com/xxxx1.jpg[/img]" +
 "[img]http://xxxxx.com/xxxx2.jpg [/img]" +
 "[img]http://xxxxx.com/xxxx3.jpg [/img]" +
 "[img]http://xxxxx.com/xxxx4.jpg [/img]" +
 "[img]http://xxxxx.com/xxxx5.jpg [/img]" +
 "[img]http://xxxxx.com/xxxx6.jpg [/img]";
...

Read More...
1