I am trying to do a http post to log into a site. Below is what I got from live http headers CSRFName=CSRF1103754532_791906178&CSRFToken=8687482b73766e6d88494351e4ee362f118d103d36d93e2855a79056449754f9f8ea5ebe9e96b4673bad22076774ec85d8c7d7f5b4c4cdd3bd577f2921ee7eab&page=login&action=login_post&email=info%40mydomain.com&password=password: undefined I need to be able to extract the CSRFName and the CSRFToken using regex and save it to a list. The part I am stuck on is extracting the CSRFName and CSRFToken in order to put those variables in the http post. I tried using