suppose I have a string:
some_string = 'https://api.github.com/repos/username/repo-name'
How do I move from right to left and stop at the first occurrence of / such that what is returned will be repo-name?
suppose I have a string:
some_string = 'https://api.github.com/repos/username/repo-name'
How do I move from right to left and stop at the first occurrence of / such that what is returned will be repo-name?