Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1000778 // Print latest runnables

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (98L/2K/4K).

!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</a> - processSilent function (hotwire and call for processing)<br>"
    //Matcher m = Pattern.compile(">#(\\d+ - .*?)</").matcher(page);
    Matcher m = Pattern.compile(">(#\\d+)</a> - (.*?)<br>").matcher(page);
    
    print("\n== Latest runnables! ==\n");

    new L<S> 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));
  }
}

Author comment

Began life as a copy of #1000758

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1000778
Snippet name: Print latest runnables
Eternal ID of this version: #1000778/1
Text MD5: 2b13159bb0d2ef16791f549d4811bd2e
Transpilation MD5: 96f469c127785b5f5e56543d9da1ba29
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-29 15:09:14
Source code size: 696 bytes / 22 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 539 / 943
Referenced in: [show references]