Note that there are some explanatory texts on larger screens.

plurals
  1. POCan anyone explain this .ASP aka VB "Regex.Replace" function so that I can do it in PHP?
    primarykey
    data
    text
    <p>The following code is visual basic, .NET, ASP... all of the above? Can anybody tell me what these two "Regex.Replace" functions/methods will leave me with when "strCookies" is equal to the block of text below the two Regex.Replace functions? I believe the idea is simply to capture the "sessionid" code and then the "cadata" code with or without the title/key of "sessionid" and "cadata". Ultimatly I'm trying to do the equivelent in php...the problem is I'm trying to deduce what I need to actually have exactly in the end based on this code. Hope that makes sense. Thanks! (I also wanted to add that for the "cadata" code, I'm specifically confused as to whether I'm suppose to be grabbing the double quotes surrounding the whole code. The sessionid doesn't have and double quotes so it's less confusing. I can't tell what the Regex.Replace function is doing).</p> <hr> <p>Dim strCADataCookie As String = Regex.Replace(strCookies, "(.<em>)sessionid=(.</em>)(,|;)(.*)", "$2")</p> <p>Dim strSessionIDCookie As String = Regex.Replace(strCookies, "(.<em>)cadata=""(.</em>)""(.*)", "$2")</p> <hr> <p>Netscape HTTP Cookie File <a href="http://www.netscape.com/newsref/std/cookie_spec.html" rel="nofollow noreferrer">http://www.netscape.com/newsref/std/cookie_spec.html</a> This file was generated by libcurl! Edit at your own risk. </p> <p>a.test.edu FALSE / FALSE 0 sessionid ca391d4e-69ad-4726-b00c-efa26f3d1594 </p> <p>a.test.edu FALSE / TRUE 0 cadata "2YUj33BRih9xeQqCL1PLAY+0EExSdDkGJdQg7KoUbca6OQxrgJi0AuuPBOEhCu7wlG2+2in5ilEE="</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload