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/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 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

Reply via email to