Exclude IP list regular expression regexp

I wonder if it’s possible to exclude a list of IP addresses based on a regular expression
if I have to use wildcards like suggest in http://piwik.org/faq/how-to/faq_80/ I would have to build long list of IP addresses which could be labor intensive
I simple one line regexp could take care of this

You may also use the CIDR notation for IP addresses for example: 112.4.2.0/24, or 2001:db8::/32. -maybe this helps?

Thanks matthieu
This helps, it definitely saves time. that being said regexp would make it lot easier