I have a string - Python :

```
string = "/foo13546897/bar/Atlantis-GPS-coordinates/bar457822368/foo/"

```

Expected output is :

```
"Atlantis-GPS-coordinates"

```

I know that the expected output is ALWAYS surrounded by "/bar/" on the left and "/" on the right :

```
"/bar/Atlantis-GPS-coordinates/"

```

Proposed solution would look like :

```
a = string.find("/bar/")
b = string.find("/",a+5)
output=string[a+5,b]

```

This works, but I don't like it.
Does someone know a beautiful function or tip ?