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

7
LINES

< > BotCompany Repo | #1008022 // wikipedia_getRedirect

JavaX fragment (include)

static S wikipedia_getRedirect(S raw) {
  raw = trim(raw);
  S p = "#REDIRECT";
  if (!containsNewLine(raw) && swic(raw, p) && endsWith(raw, "]]"))
    ret dropPrefix("[[", trim(dropPrefixIgnoreCase(p, dropSuffix("]]", raw))).replace("_", " ");
  null;
}

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: #1008022
Snippet name: wikipedia_getRedirect
Eternal ID of this version: #1008022/6
Text MD5: 657dbc4057a901373518c89e27d39f1c
Author: stefan
Category: javax / a.i. / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 14:18:46
Source code size: 260 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 474 / 501
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)