I would like to trim some specific strings in my url string.
Say I get an input url which will be accepted and stored in some string variable.,
Eg. "// en.wikipedia.org/wiki/Japan"
Then all I want to get as my output is : Japan
And same if the input url is like: "// .amazon.com/index.html" then all I want to get as my output is: index.html
Can I do this? If so, how?
Thanks in advance.