public static boolean matches ( String pattern , String value ) { Pattern p = Pattern . compile ( pattern ) ; Matcher m = p . matcher ( value ) ; return m . matches ( ) ; }
Validate if the given value matches the pattern