Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get last string separated by /

String str = "www.anywebsite.com/folder/subfolder/directory";
int index = str.lastIndexOf('/');
String lastString = str.substring(index +1);
 
PREVIOUS NEXT
Tagged: #string #separated
ADD COMMENT
Topic
Name
5+6 =