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

18
LINES

< > BotCompany Repo | #644 // P0rn finder :)

JavaX source code - run with: x30.jar

1  
!636
2  
!standard functions // loadPage etc.
3  
4  
main {
5  
  psvm {
6  
    List<String> matches = matchAll("x1.fap.to/images/thumb/([0-9/]+)\\.jpg", loadPage("imagefap.com"));
7  
    for (String match : matches)
8  
      System.out.println(match);
9  
  }
10  
  
11  
  static List<String> matchAll(String pattern, String text) {
12  
    List<String> matches = new ArrayList<String>();
13  
    Matcher matcher = Pattern.compile(pattern).matcher(text);
14  
    while (matcher.find())
15  
      matches.add(matcher.group());
16  
    return matches;
17  
  }
18  
}

download  show line numbers  debug dex  old transpilations   

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

Comments [hide]

ID Author/Program Comment Date
590 #1000610 (pitcher) 2015-08-18 00:07:07
589 #1000604 (pitcher) 2015-08-18 00:07:22

add comment

Snippet ID: #644
Snippet name: P0rn finder :)
Eternal ID of this version: #644/1
Text MD5: 26cff92343495cc1572315f1fd11b128
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-02 14:51:59
Source code size: 518 bytes / 18 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 1162 / 885
Referenced in: [show references]