Java String Camel Case to Snake Case camelToSnakeCase(String camelcase)

Here you can find the source of camelToSnakeCase(String camelcase)

Description

camel To Snake Case

License

Open Source License

Declaration

public static String camelToSnakeCase(String camelcase) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String camelToSnakeCase(String camelcase) {
        return camelcase.replaceAll("([A-Z][a-z])", "_$1");
    }//w w  w .  ja v  a2  s  .c o  m
}

Related

  1. camelToSnake(final String camelStr)
  2. camelToSnake(String camel, boolean upper)
  3. camelToSnake(String value)
  4. camelToSnakeCase(final String camelCase)
  5. camelToSnakeCase(String string)
  6. camelToSneakCase(String name)
  7. camelToUpperSnake(String camel)