imrags has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I've an html page, i want to match this pattern:
I wrote the following code
The code I wrote doesn't seem to work. Any help!!! Raghu
I've an html page, i want to match this pattern:
I want to get the IP and the status (10.10.10.10 & Minor)..</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 wrote the following code
The IP and status (minor)keeps changing...if ($html =~ /Set Node to Monitored \<BR\>\s+(\w+)\s\:\s(\w+)\W/i) { print "$1 and $2 found" }
The code I wrote doesn't seem to work. Any help!!! Raghu