Code:
import os, string, StringIO

results = "lgqgdBddddddoS"
index1 = results.find("B")
index2 = results.find("S")
	
def extract(host, index1, index2):
		return host.split(index1)[-1].split(index2)[0]
how do i go about finding all the text between b and s. thakns