python 正则的奇怪问题,各位看看
<tr >
<td>131</td>
<td>8</td>
<td class="s"><a href="/f?kz=601470589" target=_blank > 本吧强烈不欢迎以学黑客技术为目的的访问者 </a>[<font class="red">置顶</font>] </td>
<td><a href="http://passport.baidu.com/?detail&aid=6&default_tab=1&un=andelf" target=_blank><font color='#000000'>andelf</font></a></td>
<td>7-8 <a href="http://passport.baidu.com/?detail&aid=6&default_tab=1&un=FE%D0%C7%BA%D3" target=_blank><font color='#000000'> FE星河</font></a></td>
</tr>
想要匹配发帖数,回帖数,帖子链接,以及帖子题目,和发帖人。
但是匹配发帖人的时候出现问题。
既
<td>(\d+)</td>\s*<td>(\d+)</td>\s*<td\s+class="s"><a\s+href="/f\?kz=\d+"\s+target=_blank\s*>.{1,50}?</a>
是可以正常匹配的,但是加上匹配发帖人的时候却怎么也匹配不到。何解呢。。。?
整个正则表达式
<td>(\d+)</td>\s*<td>(\d+)</td>\s*<td\s+class="s"><a\s+href="/f\?kz=\d+"\s+target=_blank\s*>.{1,50}?</a>.*?<font\s+color='#000000'
相关推荐
python-horror-show:奇怪和奇怪的python代码段说明
Python的恐怖表演 在这里,您会发现一系列奇怪的和奇怪的python代码段,这些代码段显示出明显的奇怪行为。 这些脚本的目的是弄乱您的头脑,但是有人报告说,奇怪的新Python知识是次要效果。 隐藏的记忆事物 >> > a = 5 >> > b = 5 >> > a is b True >> > a = - 4 >> > b = - 4 >> > a is b True >> > a = 300 >> > b = 300 >> > a is b False >> > a = 300 ; b = 300 >> > a is b True 来自 : 当前的实现为-5到256之间的所有整数保留一个整数对象数组,当您在该范围内创建int时,实际上实际上是返回对现有对象的引用。 因此应该可以更改1的值。我怀疑在这种情况下Python的行为是不确定的。 :-) 我们可以使用id运算符检
奇怪的大冒险
奇怪的大冒险,手绘类游戏源码,下载编译即可运行!代码注释详细,适合初学者
木瓜:奇怪的机器人
木瓜 奇怪的机器人
牛客 – 奇怪的背包问题增加了(贪心)
题目链接:点击查看 题目大意:中文题意 题目分析: 代码: #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ull; const int inf=0x3f3f3f3f; const int N=1e5+100; struct Node { int val,id;
洛谷P1135:奇怪的电梯AC代码
ac代码,方法简单,易理解,推荐!!!!


