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

5
LINES

< > BotCompany Repo | #1021384 // tok_dropStartingWithWord_nPunctuation

JavaX fragment (include)

sS tok_dropStartingWithWord_nPunctuation(S word, S s) {
  LS tok = javaTokNPunctuationWithBrackets(s);
  int i = indexOfIC(tok, word);
  ret i < 0 ? s : joinSubList(tok, 0, i-1);
}

Author comment

Began life as a copy of #1021383

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021384
Snippet name: tok_dropStartingWithWord_nPunctuation
Eternal ID of this version: #1021384/1
Text MD5: 93e498ec42dc06645aeb7d4afac10998
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 15:31:31
Source code size: 184 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 237
Referenced in: [show references]