How can I sub a string according the 3th character
for example: I have the string “aaa://Google/gmail”
and I want to get a new string
till the 3th “/”, new string = “aaa://Google/”
How can I sub a string according the 3th character for example: I have
Share
Something like this should do
If you don’t care about the trailing slash, it’s simpler: