Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 111431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:23:03+00:00 2026-05-11T02:23:03+00:00

The following code is visual basic, .NET, ASP… all of the above? Can anybody

  • 0

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).


Dim strCADataCookie As String = Regex.Replace(strCookies, ‘(.)sessionid=(.)(,|;)(.*)’, ‘$2’)

Dim strSessionIDCookie As String = Regex.Replace(strCookies, ‘(.)cadata=”(.)”(.*)’, ‘$2’)


Netscape HTTP Cookie File http://www.netscape.com/newsref/std/cookie_spec.html This file was generated by libcurl! Edit at your own risk.

a.test.edu FALSE / FALSE 0 sessionid ca391d4e-69ad-4726-b00c-efa26f3d1594

a.test.edu FALSE / TRUE 0 cadata ‘2YUj33BRih9xeQqCL1PLAY+0EExSdDkGJdQg7KoUbca6OQxrgJi0AuuPBOEhCu7wlG2+2in5ilEE=’

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:23:04+00:00Added an answer on May 11, 2026 at 2:23 am

    Regex.Replace(strCookies, '(.)sessionid=(.)(,|;)(.*)', '$2')

    That returns the value of a cookie named sessionid.

    Regex.Replace(strCookies, '(.)cadata=''(.)''(.*)', '$2')

    That returns the value of a cookie named cadata after unquoting it. So the resulting string would be stored without the quotes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 106k
  • Answers 106k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Have a look at SharePoint 2007 Developer's Guide to Business… May 11, 2026 at 8:52 pm
  • Editorial Team
    Editorial Team added an answer Looks like you need to use the bootclasspath setting in… May 11, 2026 at 8:52 pm
  • Editorial Team
    Editorial Team added an answer The basic histogram algorithm is something like: int[] hist =… May 11, 2026 at 8:52 pm

Related Questions

The following code is visual basic, .NET, ASP... all of the above? Can anybody
I'm trying to get images to display in a WPF ListView styled like a
The following code for a co-worker throws the following error when he tries to
I'm using Visual Basic 9 (VS2008) and TagLib. The following code extracts the album
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.