- 论坛徽章:
- 0
|
本帖最后由 qintel 于 2010-06-12 02:24 编辑
数据一:单选答案- </script><!-- END MCSA, MCMA, FIB --><table border="2" width="80%">
- <tbody><tr>
- <th> </th><th>标题</th><th>描述</th><th>最高分值</th>
- </tr>
- <tr>
- <td>1</td><td>correctness of response</td><td>
-
- 2 points for Option 3<br>0 points for any other option
-
- </td><td align="center">2</td>
- </tr>
- </tbody></table>
复制代码 数据一:合并成一行后- </script><!-- END MCSA, MCMA, FIB --><table border="2" width="80%"><tbody><tr><th> </th><th>标题</th><th>描述</th><th>最高分值</th></tr><tr><td>1</td>td>correctness of response</td><td> 2 points for Option 3<br>0 points for any other option </td><td align="center">2</td></tr></tbody></table>
复制代码 我在vim里用%s/<table border="2".*<\/table>//g 无法匹配上面的从<table .........到</table>的代码段,后来想到*不能匹配换行符,于是将这些行合并为一行以后,就可以匹配了,
请问,有没有办法,不合并这些行,也可以匹配从<table .........到</table>的代码段的办法? |
|