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

6
LINES

< > BotCompany Repo | #1005739 // dropIncluding - drop beginning of string until (an including) a certain substring (or return "" if not found)

JavaX fragment (include)

static S dropIncluding(S s, S x) {
  if (s == null) null;
  int i = s.indexOf(x);
  if (i < 0) ret "";
  ret substring(s, i+l(x));
}

Author comment

Began life as a copy of #1004390

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1005739
Snippet name: dropIncluding - drop beginning of string until (an including) a certain substring (or return "" if not found)
Eternal ID of this version: #1005739/1
Text MD5: 6aa0160598495203e5fbff4b06779e08
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-05 13:06:25
Source code size: 137 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 500 / 533
Referenced in: [show references]