Java tutorial
//package com.java2s; public class Main { public static String toStandart(final String name) { String result = name.replaceAll("([a-z\\d])([A-Z])", "$1-$2").replace('_', '-'); result = result.toLowerCase(); return result; } }