Doesn't
pbl.spamhaus.org do this better for you,
and maybe other similar
RBLs ?
I do a spamhaus check first but if they miss them I add a regexp to picks them up.
I should do a sweep of the regexps against spamhaus - there was probably
only a small time window when spamhaus missed them.
-Steve