support regexp in histogram config

the current histogram config use plain text match, but sometimes we need to match metrics on the same pattern, so I added support for regexp in histogram config