/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String text
= "um2tres4cinco6sete8";
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(text);
while(m.find()){
System.
out.
println(m.
group()); }
System.
out.
println("Total de grupos: " + m.
groupCount()); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguTWF0Y2hlcjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5QYXR0ZXJuOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCSAgICBTdHJpbmcgdGV4dCA9ICJ1bTJ0cmVzNGNpbmNvNnNldGU4IjsKCQkKCQlTdHJpbmcgcmVnZXggPSAiWzAtOV0iOwoKCQlQYXR0ZXJuIHAgPSBQYXR0ZXJuLmNvbXBpbGUocmVnZXgpOwoJCU1hdGNoZXIgbSA9IHAubWF0Y2hlcih0ZXh0KTsKCQkKCQl3aGlsZShtLmZpbmQoKSl7CgkJCVN5c3RlbS5vdXQucHJpbnRsbihtLmdyb3VwKCkpOwoJCX0KCQlTeXN0ZW0ub3V0LnByaW50bG4oIlRvdGFsIGRlIGdydXBvczogIiArIG0uZ3JvdXBDb3VudCgpKTsKCX0KfQ==