
jhardin at impsec
Nov 5, 2011, 6:15 PM
Post #7 of 8
(235 views)
Permalink
|
On Sat, 5 Nov 2011, Matus UHLAR - fantomas wrote: > On 05.11.11 08:59, John Hardin wrote: >> That would probably require new code in the HTML parsing plugin, as the >> rules don't provide "memory". It would be easy to count how many tags had >> color, but counting how many _different_ colors would be difficult. > > luckily perl supports hashes :) Yeah, that's exactly what I was thinking for a way to do it. Build a hash of the color codes, then you can have a rule for the number of colors and rules (if desired) for the presence of specific colors. -- John Hardin KA7OHZ http://www.impsec.org/~jhardin/ jhardin [at] impsec FALaholic #11174 pgpk -a jhardin [at] impsec key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- "Bother," said Pooh as he struggled with /etc/sendmail.cf, "it never does quite what I want. I wish Christopher Robin was here." -- Peter da Silva in a.s.r ----------------------------------------------------------------------- Tomorrow: Daylight Saving Time ends in U.S. - Fall Back
|