fixed regex handling in memory histograms