!636 (modern)
main {
psvm {
S s = "% type:34 type:40";
S page = loadPage("http://tinybrain.de:8080/tb/search.php?q=" + urlencode(s));
// example string matched: ">#1000689 - processSilent function (hotwire and call for processing)
"
//Matcher m = Pattern.compile(">#(\\d+ - .*?)").matcher(page);
Matcher m = Pattern.compile(">(#\\d+) - (.*?)
").matcher(page);
print("\n== Latest runnables! ==\n");
new L results;
while (m.find()) {
results.add(m.group(1) + " - " + m.group(2));
if (results.size() > 10) break;
}
for (int i = results.size()-1; i >= 0; i--)
print(results.get(i));
}
}