imrags has asked for the wisdom of the Perl Monks concerning the following question:
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">
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" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wrong regex?
by ikegami (Patriarch) on Feb 10, 2010 at 06:31 UTC | |
by jwkrahn (Abbot) on Feb 10, 2010 at 06:38 UTC | |
by ikegami (Patriarch) on Feb 10, 2010 at 06:56 UTC | |
|
Re: Wrong regex?
by biohisham (Priest) on Feb 10, 2010 at 08:32 UTC | |
by graff (Chancellor) on Feb 10, 2010 at 18:28 UTC |