Creating a Perl Compatible Regular Expression for use in PRTG Network Monitor

Commissario
Joined
16 Oct 2002
Posts
342,209
Location
In the radio shack
I wonder if someone can help me please. This may or may not be possible.

I use PRTG to monitor some web page and I want it to error if it detects the following lines in a page of html.

Code:
<td bgcolor="GREEN"><FONT FACE="VERDANA" SIZE="2" COLOR="WHITE"><B>ITEM1
<td bgcolor="RED"><FONT FACE="VERDANA" SIZE="2" COLOR="WHITE"><B>ITEM2
<td bgcolor="GREEN"><FONT FACE="VERDANA" SIZE="2" COLOR="WHITE"><B>ITEM3


Unfortunately these lines don't just follow each other, they're not consecutive within the html otherwise it'd be easy to check for their presence.

PRTG supports Perl Compatible Regular Expressions (PRCE) as described here and I'm struggling to create one which checks for the presence of the three lines above.

Is it possible to use a Perl Compatible Regular Expression for this? If so, what on earth should it be?

Thanks.
 
Back
Top Bottom