Pattern pathPattern = Pattern.compile("(\\w+=\\w+\\s*)");
Matcher matcher = pathPattern.matcher("sdf=ff ggg=dd hhh=44 jjj=5456");
while (matcher.find()) {
for (int i=1; i<=matcher.groupCount(); i++) {
System.out.println(matcher.group(i));
}
}
sdf=ff ggg=dd hhh=44 jjj=5456