You can use Pattern.DOTALL
with your regex. It means In dotall mode, the expression dot(.) matches any character, including a line terminator
and it will help you to match pattern from multiple lines.
String input = "__YOUR__VCARDS__";
Pattern pattern = Pattern.compile("(BEGIN:VCARD.*?END:VCARD)", Pattern.DOTALL);
Matcher m = pattern.matcher(input);
while (m.find()) {
System.out.println(m.group(1));
}