static boolean containsMatch ( String actual , String regex ) { return Pattern . compile ( regex ) . matcher ( actual ) . find ( ) ; }
Determines if the given subject contains a match for the given regex .