(Yes, I know there are relevant regex questions that ask how to capture information between two characters. I tried, they didn't work for me. I also read the regex tutorials as deep as possible.)
I have this code that uses BeautifulSoup to scrap some information from a website in this form: Exchange rate: 1 USD = 60.50 INR
This string is stored in a variable called 'data'. I have to capture '60.50' from this string. I have this code for that:
data = _funct()
rate = re.search("?<=\=)(.*?)(?=\I" , data)
print rate
It doesn't work. Where am I going wrong?