public static String extractParameter(String input, int length) {
        if (input == null)
            return null;
        Pattern p = Pattern.compile("value=\"(\\S{" + length + "})\"");
        Matcher m = p.matcher(input);
        if (m.find())
            return m.group(1);
        else
            return null;
    }