How do I get the substring for the string :
"s3n://bucket/test/files/*/*"
I would like to get s3n://bucket/test/files alone. I tried the split :
"s3n://bucket/test/files/*/*".split("/*/*") but this gives me array of strings with each character.