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

7
LINES

< > TinyBrain | #1008022 - wikipedia_getRedirect

JavaX fragment (include)

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

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1008022
Snippet name: wikipedia_getRedirect
Eternal ID of this version: #1008022/5
Text MD5: f3934df3ac29d79b1de49fb9d6cfecfc
Author: stefan
Category: javax / a.i. / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-21 00:42:44
Source code size: 235 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 27 / 16
Version history: 4 change(s)
Referenced in: [show]