public static boolean isMatch ( final String regex , final CharSequence input ) { return input != null && input . length ( ) > 0 && Pattern . matches ( regex , input ) ; }
Determines whether the regular is matched .