class GraphiteSanitizer {

	public static String sanitizeGraphiteMetricSegment(String metricNameSegment) {
		return DISALLOWED_CHARS.matcher(metricNameSegment
				.replace('.', ':')
				.replace(' ', '-')
				.replace('/', '|')
				.replace('\\', '|'))
				.replaceAll("_");
	}

	private  GraphiteSanitizer();

}