I have the following substring in the string str(dList):
"addressRegion">\n\t\t\t\t\t\t\t\t\tMA\n\t\t\t\t\t\t\t\t</span>
I am trying to use re.search to pull out "MA" using this:
state = re.search(r'"addressRegion">\n\t\t\t\t\t\t\t\t\t(.+?)\n\t',str(dList))
however, that doesn't seem to work. I understand this is possibly because of the the way "/" is handled. I can't figure out how to deal with this.