Here you can find the source of isValidMD5(String s)
public static boolean isValidMD5(String s)
//package com.java2s; /**/* w w w. ja va 2s . c o m*/ * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * Copyright 2015 Chiori-chan. All Right Reserved. * * @author Chiori Greene * @email chiorigreene@gmail.com */ public class Main { public static boolean isValidMD5(String s) { return s.matches("[a-fA-F0-9]{32}"); } }