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

  • SEARCH
  • Home
  • 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 6075173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:27:53+00:00 2026-05-23T10:27:53+00:00

GET /server HTTP/1.1 Upgrade: WebSocket Connection: Upgrade Host: localhost:8181 Origin: http://localhost:8080 Sec-WebSocket-Key1: 42100 1

  • 0
GET /server HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: localhost:8181
Origin: http://localhost:8080
Sec-WebSocket-Key1: 42100 1 W5V X170y  ER
Sec-WebSocket-Key2: ~\\ 8  I4ms;34 l`1j5 V2h0

Q??6QK?

Im receiving the above message and using c# to extract the last set of caracters (Q??6QK?) using the following Regex:

Regex.Match(message, "\r\n\r\n(?<value>.*?)$", options).Groups["value"].Value;

But the result of the Regex is return the string terminator caracter like this:

Q??6QK?\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0

Why? What is wrong?

  • 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. Editorial Team
    Editorial Team
    2026-05-23T10:27:54+00:00Added an answer on May 23, 2026 at 10:27 am

    Your string contains nulls at the end. The problem is in the string you pass to the regex engine, not the regex engine itself.

    Perhaps you can post the code that created the string. You are probably reading a little too much out of a byte[].

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

Sidebar

Related Questions

I've deployed the railo-3.2.3.000.war and I get the welcome page at http://localhost:8080/railo-3.2.3.000/ which is
I am trying to get an image from an HTTP server using Perl. I
I am making HTTP connections to server to get some data. It works on
Starting with no cache on server or client FIRST REQUEST GET /post/1 HTTP/1.1 HTTP/1.1
Something I still don't understand when performing an http-get request to the server is
I want its output as uppercase. This is what I get on Server.UrlEncode(http://) :
def self.get(server) return unless server server = server.to_s if klass = @handlers[server] obj =
How can you get MSSQL server to accept Unicode data by default into a
how can you get the server relative url of a file in a document
i want to get ip server where my tomcat is execute in java (Struts).?

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.