- 论坛徽章:
- 0
|
比如如下html代码,如何用sed提取<p class="content">和</p>标签之间的内容? 谢!
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
.floatLeft{float: left;}
.image-left{float: left; vertical-align: text-top; padding-right:15px;}
.content{}
div.wrapContainer{width:99.5%; float:left; maring:0px;}
body {margin: 0px;}
</style>
</head>
<body>
<table border=0 align="center" cellpadding="0" width="100%">
<tr>
<td align="center">
<div class="wrapContainer">
<p class="image-left"><img src="http://boulat.googlepages.com/cookie.png" alt="Linux Fortune Cookie" border="0"></p>
<p class="content">It's no wonder they call it WinNT; WNT = VMS++;
-- Chris Abbey
%
Peace, Love and Compile the kernel...
-- Justin L. Herreman
</p>
</div>
<br>
<div align="right"><a href="./cookie.php">next »</a></div>
</td>
</tr></table>
</body>
</html>
|
|