package net.minecraft.util;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.regex.Pattern;

public class StringUtils {

   private static final Pattern field_76339_a = Pattern.compile("(?i)\\u00A7[0-9A-FK-OR]");


   @SideOnly(Side.CLIENT)
   public static String func_76337_a(int p_76337_0_) {
      int var1 = p_76337_0_ / 20;
      int var2 = var1 / 60;
      var1 %= 60;
      return var1 < 10?var2 + ":0" + var1:var2 + ":" + var1;
   }

   public static String func_76338_a(String p_76338_0_) {
      return field_76339_a.matcher(p_76338_0_).replaceAll("");
   }

}
