public static boolean match ( Object value1 , Object value2 ) { if ( value1 == null && value2 == null ) return true ; if ( value1 == null || value2 == null ) return false ; String string1 = value1 . toString ( ) ; String string2 = value2 . toString ( ) ; return string1 . matches ( string2 ) ; }
Checks if string matches a regular expression