// returns [{snippet ID, title}] static L<S[]> search2(S query) { S page = loadPage(tb_mainServer() + "/tb/search.php?q=" + urlencode(query)); Matcher m = Pattern.compile(">(#\\d+)</a> - (.*?)<br>").matcher(page); new L<S[]> results; while (m.find()) results.add(new S[] {m.group(1), htmldecode(dropTags(m.group(2)))}); ret results; }
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: | 787 / 763 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |