Minor fixup to cookie search regexp

I thought tiny, minor fix-up might help you out. It looks like the only thing that needed changing was the regexp looking for the cookie string. An update to the StackOverflow answer had a very different string which the original regexp would not have been able to identify. Luckily, it was a very simple fix, and your clean Python code helped out. :-)

(This is my first attempt a making a pull request, please do not pull any punches letting me know if I messed up somewhere.)