I have got string like str = Adobe Flash Player 11.4.402.287 (11.3 MB), I need to extract only Adobe Flash Player as the output. Pls suggest..
I tried using Regex like :
String str = "Adobe Flash Player 11.4.402.287 (11.3 MB)";
Pattern p = Pattern.compile("^[a-zA-Z]+([0-9]+).*");
Matcher m = p.matcher(str);
if (m.find()) {
System.out.println(m.group(1));
}