Java String Camel Case To camelCaseToDashLowerName(String name)

Here you can find the source of camelCaseToDashLowerName(String name)

Description

camel Case To Dash Lower Name

License

Apache License

Declaration

public static String camelCaseToDashLowerName(String name) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String camelCaseToDashLowerName(String name) {
        // TODO: optimize
        return name.replaceAll("([A-Z])", "-$1").toLowerCase();
    }//ww w  . jav a2 s  . c  o m
}

Related

  1. camelCaseOrSpaceToDashed(String s)
  2. camelCasePrefix(String strPrefix)
  3. camelCaseSpace(final String str)
  4. camelCaseToDash(String input)
  5. camelCaseToDashes(String camelCaseString, int startIndex, String prefix)
  6. camelCaseToDashSeperated(String s)
  7. camelCaseToDotNotation(String string)
  8. camelCaseToEnum(String camelCase)
  9. camelCaseToEnum(String name)