hi
can someone help me out with a perl regex...
what I want to do is pull the entire line:
out of the following block of html code.
<tr valign="top" align="left">
<td height="34"><input type="hidden" name="url" value="http://www.mysite.com/">
<img src="/header/logo.gif" width="218" height="34" border="0" alt="mysite.com" vspace="0" hspace="0"></a></td>
<td valign="bottom" align="right" nowrap>
<table border="0" cellspacing="0" cellpadding="0" height="36" background="/header/pix.gif">
<tr>
by using the url as the target to match against?
I can find the url ok using the above, but how do I "grab" the html from the leading "<" to the trailing ">" around it?
thanks
r
can someone help me out with a perl regex...
what I want to do is pull the entire line:
Code:
<input type="hidden" name="url" value="http://www.mysite.com/">out of the following block of html code.
Code:
<table width="750" border="0" cellspacing="0" cellpadding="0" vspace="0" hspace="0" height="53"> <tr valign="top" align="left">
<td height="34"><input type="hidden" name="url" value="http://www.mysite.com/">
<img src="/header/logo.gif" width="218" height="34" border="0" alt="mysite.com" vspace="0" hspace="0"></a></td>
<td valign="bottom" align="right" nowrap>
<table border="0" cellspacing="0" cellpadding="0" height="36" background="/header/pix.gif">
<tr>
by using the url as the target to match against?
Code:
$htmlblock =~/http://www.mysite.com/gI can find the url ok using the above, but how do I "grab" the html from the leading "<" to the trailing ">" around it?
thanks
r