and I want to extract session_id, I think this is done with preg_match but I have no idea how to write a regular expression that will extract 'b71b8885254c6e48' any ideas?
Hmmm i don't think they do as such, and centralizing and making them recurrent was the point, because they are scattered randomly in time and from several different channels.
The post-installation disk footprint hasn't changed much. In version 0.99.1, it was 979 MB. Now, it is 959 MB. That's just 2%. Also, PowerToys fills the disk with logs like crazy. Just look inside "\AppData\Local\Microsoft\PowerToys".
Question
Banzai
Hello I have a string
$str = 'HTTP/1.1 401 Unauthorized Cache-Control: max-age=0 WWW-Authenticate: Digest realm="this web site", nonce="4f4219a0543637c4f", stale="false", algorithm="MD5", qop="auth" Date: Mon, 20 Feb 2012 10:13:23 GMT Server: lighttpd HTTP/1.1 302 Found Cache-Control: max-age=0 Cache-Control: must revalidate Location: u_lastlogin.htm?message=20-02-2012 10:09;0;Web Content-Type: text/html Set-Cookie: session_id=b71b8885254c6e48; discard; security Set-Cookie: loggedin=true;Cache-control: no-cache=set-cookie Date: Mon, 20 Feb 2012 10:13:29 GMT Server: lighttpd ';
and I want to extract session_id, I think this is done with preg_match but I have no idea how to write a regular expression that will extract 'b71b8885254c6e48' any ideas?
Link to comment
https://www.neowin.net/forum/topic/1059104-search-a-string-php/Share on other sites
4 answers to this question
Recommended Posts