1 | // returns snippet IDs |
2 | static L<S> tbSearch_simple(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(m.group(1)); |
10 | ret results; |
11 | } |
Began life as a copy of #1000778
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: | #1001763 |
Snippet name: | tbSearch_simple - searches snippets (used to be just callde "search") |
Eternal ID of this version: | #1001763/8 |
Text MD5: | 52d8ea37af17fd12def09a6fef8cdd7f |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-10-13 15:21:01 |
Source code size: | 316 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 781 / 985 |
Version history: | 7 change(s) |
Referenced in: | [show references] |