Here you can find the source of colorize(String string)
public static String colorize(String string)
//package com.java2s; //License from project: Creative Commons License public class Main { public static String colorize(String string) { return string.replaceAll("(?i)&([a-k0-9])", "\u00A7$1"); }/*from ww w .jav a 2 s .c o m*/ }