int function ( String arg0 , String arg1 ) { Pattern loc0 = Pattern . compile ( arg1 ) ; Matcher loc1 = loc0 . loc1 ( arg0 ) ; int loc2 = 0 ; while ( loc1 . find ( ) ) loc2 ++ ; return loc2 ; }
counts the number of matches of a given pattern in a given string . concode_field_sep int TOTAL_POINTS concode_field_sep int assessLetters concode_elem_sep int assessPassword concode_elem_sep int assessLength concode_elem_sep int assessSpecials concode_elem_sep boolean matches concode_elem_sep int assessNumbers