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

14
LINES

< > BotCompany Repo | #1014474 // jextractAll

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (3094L) is out of date.

static LS jextractAll(S pat, S s) {
  ret jextractAll(pat, javaTok(s));
}

static LS jextractAll(S pat, LS tok) {
  LS tokpat = javaTok(pat);
  jfind_preprocess(tokpat);
  ret map(jfindAll(tok, tokpat), i -> joinSubList(tok, i, i+l(tokpat)-2));
}


static LS jextractAll(LS tok, S pat) {
  ret jextractAll(pat, tok);
}

Author comment

Began life as a copy of #1004321

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1014474
Snippet name: jextractAll
Eternal ID of this version: #1014474/3
Text MD5: 24693b0d672df2221a60896f9ae95194
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-24 23:53:23
Source code size: 331 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 480 / 604
Version history: 2 change(s)
Referenced in: [show references]