Regular expression to get input and HTTP header

2

How to construct a regular expression that selects this here?

Set-Cookie: csrftoken=bf8748c0b1e113430d9757cf0ed06f4a; expires=Mon, 04-May-2015 20:54:08 GMT; Max-Age=31449600; Path=/
<input type="hidden" name="csrfmiddlewaretoken" value="676248f0994e62274dea72023fe699ff">

I want to login with cURL in instagram.

    
asked by anonymous 05.05.2014 / 23:01

1 answer

1

You can not really understand what the question is asking, but here's a try.

Try using the following expression:

/csrftoken=([\w]+)\;/

Demo

The second expression:

/value=\"([\w]+)\"/

Demo

    
06.05.2014 / 00:20