/* 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
{
{
final String regex
= "\\b[0-9]+\\b(?! [A-Z])"; final String string
= "Error trying to POST to /shipments/28056415973/select?caller.id=116089592: 500 INTERNAL_SERVER_ERROR\n";
final Pattern pattern = Pattern.compile(regex);
final Matcher matcher = pattern.matcher(string);
final String result
= matcher.
replaceAll(subst
);
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguTWF0Y2hlcjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5QYXR0ZXJuOwoKLyogTmFtZSBvZiB0aGUgY2xhc3MgaGFzIHRvIGJlICJNYWluIiBvbmx5IGlmIHRoZSBjbGFzcyBpcyBwdWJsaWMuICovCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlmaW5hbCBTdHJpbmcgcmVnZXggPSAiXFxiWzAtOV0rXFxiKD8hIFtBLVpdKSI7CgkJZmluYWwgU3RyaW5nIHN0cmluZyA9ICJFcnJvciB0cnlpbmcgdG8gUE9TVCB0byAvc2hpcG1lbnRzLzI4MDU2NDE1OTczL3NlbGVjdD9jYWxsZXIuaWQ9MTE2MDg5NTkyOiA1MDAgSU5URVJOQUxfU0VSVkVSX0VSUk9SXG4iOwoJCWZpbmFsIFN0cmluZyBzdWJzdCA9ICJYWFhYIjsKCQkKCQlmaW5hbCBQYXR0ZXJuIHBhdHRlcm4gPSBQYXR0ZXJuLmNvbXBpbGUocmVnZXgpOwoJCWZpbmFsIE1hdGNoZXIgbWF0Y2hlciA9IHBhdHRlcm4ubWF0Y2hlcihzdHJpbmcpOwoJCQoJCWZpbmFsIFN0cmluZyByZXN1bHQgPSBtYXRjaGVyLnJlcGxhY2VBbGwoc3Vic3QpOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbihyZXN1bHQpOwoKCX0KfQ==