saibsk
asked on
Perl regular expression issue
file 1 contains:
<td><font ><strong>Type :</strong></font>
<A href="index.cfm?fuseaction =display&I nstance=2& ssrid=x371 03cc4cf651 faff651427 678f197d7" ><font>Ext ension1</f ont></a>
</td>
File 2 contains:
<td><font><b>Type:</b></fo nt>
<A href="index.cfm?fuseaction =display&I nstance=2& ssrid=xb3a c14a5bfa03 4397ebcdbd d043ad05b" ><font size='3'>SimpleIdentificat ionInforma tion</font ></a>
</td>
I need to retrieve the Type value "Extension1" and "SimpleIdentificationInfor mation" from both files. I want just one regular expression. I wrote this one but doesn't return the data right.
$content2 =~ /Type.*\<font.+?\>(.*)\<\/ font\>\<\/ a\>/s){
<td><font ><strong>Type :</strong></font>
<A href="index.cfm?fuseaction
</td>
File 2 contains:
<td><font><b>Type:</b></fo
<A href="index.cfm?fuseaction
</td>
I need to retrieve the Type value "Extension1" and "SimpleIdentificationInfor
$content2 =~ /Type.*\<font.+?\>(.*)\<\/
ASKER
nope doesn't work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
/Type.*\<font[^>]*\>(.*)\<