I've an html page, i want to match this pattern:
</HEAD><BODY><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"><H2>Set Node
+ to Monitored <BR> 10.10.10.10 : Minor
</H2><FORM METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
I want to get the IP and the status (10.10.10.10 & Minor)..
I wrote the following code
if ($html =~ /Set Node to Monitored \<BR\>\s+(\w+)\s\:\s(\w+)\W/i)
print "$1 and $2 found"
The IP and status (minor)keeps changing...
The code I wrote doesn't seem to work. Any help!!!