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

6
LINES

< > BotCompany Repo | #1014195 // wikipediaDeformat

JavaX fragment (include)

static S wikipediaDeformat(S s) {
  ret regexpReplace_direct(regexpReplace(s, "\\[\\[(.*?)\\]\\]", func(Matcher m) -> S {
    S s = m.group(1);
    ret substring(s, indexOf(s, '|')+1);
  }), "'''?", "\"");
}

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: #1014195
Snippet name: wikipediaDeformat
Eternal ID of this version: #1014195/7
Text MD5: f705d76728342b0b0e913a0fdcbc5d64
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 17:13:51
Source code size: 212 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 420
Version history: 6 change(s)
Referenced in: [show references]