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

3
LINES

< > BotCompany Repo | #1032104 // afterLast (return part after last occurrence of character, or empty string)

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

Libraryless. Click here for Pure Java version (3067L/17K).

1  
sS afterLast(S s, char c) {
2  
  ret substring(s, smartLastIndexOf(s, c)+1);
3  
}

Author comment

Began life as a copy of #1023943

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032104
Snippet name: afterLast (return part after last occurrence of character, or empty string)
Eternal ID of this version: #1032104/1
Text MD5: 60cd175a883cb9c7d18ed65ad34c1d55
Transpilation MD5: 1bad828102812e2675838ca9868671ee
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-13 20:07:09
Source code size: 77 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 150 / 218
Referenced in: [show references]