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

9
LINES

< > BotCompany Repo | #1007005 // parseSnippetURLOpt - snippet URL to ID

JavaX fragment (include)

static long parseSnippetURLOpt(S s) {
  if (empty(s)) ret 0;
  for (S pat : ll("tinybrain.de/(\\d+)", "show-snippet.php\\?id=(\\d+)",
    "(\\d+)\\.tinybrain\\.de")) {
    S id = regexpFirstGroupIC(pat, s);
    if (id != null) ret psI(id);
  }
  ret 0;
}

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: 552 / 555
Version history: 3 change(s)
Referenced in: [show references]