fixed issue with regexp matching.

this patch will fix issue with regexp matching.
it sometimes happened to wrongly parse all data.

please see:
https://collectd.org/wiki/index.php/Naming_schema
for more information.

i do not know what is "category" for so i left it empty not to break anything. hopefully.
"varnish" is also something that i do not know what is for.