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

9
LINES

< > BotCompany Repo | #1013908 // partBetweenStrings

JavaX fragment (include)

static S partBetweenStrings(S s, S begin, S end) {
  if (s == null) null;
  int i = indexOf(s, begin);
  if (i < 0) null;
  i += l(begin);
  int j = indexOf(s, i, end);
  if (j < 0) null;
  ret substring(s, i, j);
}

Author comment

Began life as a copy of #1012263

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: #1013908
Snippet name: partBetweenStrings
Eternal ID of this version: #1013908/2
Text MD5: 45dc8e4915f1aa40eba385ccdd00675e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-14 20:31:14
Source code size: 223 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 239 / 280
Version history: 1 change(s)
Referenced in: [show references]