1 | static long parseSnippetURLOpt(S s) {
|
2 | if (empty(s)) ret 0; |
3 | for (S pat : ll("tinybrain.de/(\\d+)", "show-snippet.php\\?id=(\\d+)",
|
4 | "(\\d+)\\.tinybrain\\.de")) {
|
5 | S id = regexpFirstGroupIC(pat, s); |
6 | if (id != null) ret psI(id); |
7 | } |
8 | ret 0; |
9 | } |
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: | #1007005 |
| Snippet name: | parseSnippetURLOpt - snippet URL to ID |
| Eternal ID of this version: | #1007005/4 |
| Text MD5: | 54747339ef281bc2af064e8346912171 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-25 13:41:31 |
| Source code size: | 262 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 811 / 808 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |