import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.*;
class Ideone
{
{
String s
= "#!key1 #!compound.key2 #!super.compound.key3"; Matcher matcher = Pattern.compile("(?<=#!)\\b\\w+(?:\\.\\w+)*").matcher(s);
while (matcher.find()) {
System.
out.
println(matcher.
group()); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguKjsKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZyBzID0gIiMha2V5MSAjIWNvbXBvdW5kLmtleTIgIyFzdXBlci5jb21wb3VuZC5rZXkzIjsKCQlNYXRjaGVyIG1hdGNoZXIgPSBQYXR0ZXJuLmNvbXBpbGUoIig/PD0jISlcXGJcXHcrKD86XFwuXFx3KykqIikubWF0Y2hlcihzKTsKCQl3aGlsZSAobWF0Y2hlci5maW5kKCkpIHsKCQkJU3lzdGVtLm91dC5wcmludGxuKG1hdGNoZXIuZ3JvdXAoKSk7CgkJfQoJfQp9