static String getRegex(int type) { switch (type) { case NANO: return NANO_REGEX; case BANANO: return BANANO_REGEX; default: return NANO_REGEX; } }