/* 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 s
= "<div style=\"border:1px solid #CCC\">03</div>"; String p
= "<("+t
+").*>([^<]*?)</\\1>"; Pattern r = Pattern.compile(p, Pattern.CASE_INSENSITIVE);
Matcher m = r.matcher(s);
m.find();
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguTWF0Y2hlcjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5QYXR0ZXJuOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTdHJpbmcgcyA9ICI8ZGl2IHN0eWxlPVwiYm9yZGVyOjFweCBzb2xpZCAjQ0NDXCI+MDM8L2Rpdj4iOwoJCVN0cmluZyB0ID0gImRpdiI7CgkgICAgU3RyaW5nIHAgPSAiPCgiK3QrIikuKj4oW148XSo/KTwvXFwxPiI7CgkgICAgUGF0dGVybiByID0gUGF0dGVybi5jb21waWxlKHAsIFBhdHRlcm4uQ0FTRV9JTlNFTlNJVElWRSk7CgkgICAgTWF0Y2hlciBtID0gci5tYXRjaGVyKHMpOwoJICAgIG0uZmluZCgpOwoJICAgIAoJICAgIFN5c3RlbS5vdXQucHJpbnQobS5ncm91cCgyKSk7Cgl9Cn0=