[drraw-users] Antw: Question about templates

Sven Probst Sven.Probst at WDR.DE
Tue Sep 12 09:25:24 EDT 2006


"Frans Haarman" <franshaarman at gmail.com> wrote on 12.09.2006 14:58:
> For example, tutorials suggest that: ~= m/snmp/;   should be
positive
> for all files which have "snmp". However I never get hits with the
> drraw.cgi.
> 
> I tried: snmp(.*)\.rrd, also without result. I think I just need a
> cluebat cause its just very weird.

The point you should know: with the ()-expression you "catch" a value
from the filename (e.g. the servername) and you can access the first
value with $1(second with $2) and so on...
I think the regexp matches only on the basename and ^ and $ are implied
by drraw (you have to check this in sourcecode..)
snmp(.*)  should match in your case.



More information about the drraw-users mailing list