I have a line - Python:
string = "/foo13546897/bar/Atlantis-GPS-coordinates/bar457822368/foo/"
Expected Result:
"Atlantis-GPS-coordinates"
I know that the expected result is ALWAYS surrounded by "/ bar /" on the left and "/" on the right:
"/bar/Atlantis-GPS-coordinates/"
The proposed solution will look like this:
a = string.find("/bar/") b = string.find("/",a+5) output=string[a+5,b]
It works, but I don't like it. Does anyone know a great feature or tooltip?
source share