import java.util.regex.Matcher;
import java.util.regex.Pattern;
class Program {
Matcher fonte = (Pattern.compile("test")).matcher("teste de regex");
System.
out.
println(fonte.
find()); System.
out.
println(fonte.
matches()); }
}
//https://pt.stackoverflow.com/q/242446/101
aW1wb3J0IGphdmEudXRpbC5yZWdleC5NYXRjaGVyOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4LlBhdHRlcm47CgpjbGFzcyBQcm9ncmFtIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBFeGNlcHRpb24gewoJICAgIE1hdGNoZXIgZm9udGUgPSAoUGF0dGVybi5jb21waWxlKCJ0ZXN0IikpLm1hdGNoZXIoInRlc3RlIGRlIHJlZ2V4Iik7CgkgICAgU3lzdGVtLm91dC5wcmludGxuKGZvbnRlLmZpbmQoKSk7CgkgICAgU3lzdGVtLm91dC5wcmludGxuKGZvbnRlLm1hdGNoZXMoKSk7Cgl9Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzI0MjQ0Ni8xMDE=