groupCount
just tells you how many groups are defined in the regular expression. If you want to actually access a result, you have to perform a match first!
if (matcher1.find()) {
System.out.println("matcher1.group(0) = " (matcher1.group(0)).toString());
} else {
System.out.println("No match.");
}
Also .
is a special character in regex, you probably wanted \\.
?