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

18
LINES

< > BotCompany Repo | #1000563 // Parse "My actions"

JavaX source code - run with: x30.jar

!636
!standard functions
!quicknew

main {
  psvm {
    // example line: 2015-08-12 05:29:10 - http://tinybrain.de:8080/tb/my-actions.php
    String src = loadSnippet("#2000518");
    new List<String> actions;
    for (String line : toLines(src)) {
      int i = line.indexOf(" - http:");
      if (i >= 0)
        actions.add(line.substring(i+3).trim());
    }
    
    System.out.println(actions);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1000563
Snippet name: Parse "My actions"
Eternal ID of this version: #1000563/1
Text MD5: 6dfbcaa2ab81ddd2bbdc9ccf294a98f8
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-14 17:50:17
Source code size: 422 bytes / 18 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 538 / 454
Referenced in: [show references]