1 | // returns [{snippet ID, title}] |
2 | static L<S[]> search2(S query) { |
3 | S page = loadPage(tb_mainServer() + "/tb/search.php?q=" + urlencode(query)); |
4 | |
5 | Matcher m = Pattern.compile(">(#\\d+)</a> - (.*?)<br>").matcher(page); |
6 | |
7 | new L<S[]> results; |
8 | while (m.find()) |
9 | results.add(new S[] {m.group(1), htmldecode(dropTags(m.group(2)))}); |
10 | ret results; |
11 | } |
Began life as a copy of #1001763
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002569 |
Snippet name: | search2 - searches snippets, returns ids and names |
Eternal ID of this version: | #1002569/2 |
Text MD5: | 0feedd874dbcef54bece3c3976a70b94 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-29 16:54:52 |
Source code size: | 366 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 535 / 509 |
Version history: | 1 change(s) |
Referenced in: | [show references] |