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 8441709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:38:06+00:00 2026-06-10T08:38:06+00:00

I am trying to parse SIP messages for all SIP codes from the range

  • 0

I am trying to parse SIP messages for all SIP codes from the range 400-699 EXCEPT 401 (it’s used for client authentication and fills our logs with garbage).

The messages look like this (small subset, there’s a huge number of codes and I’d like to avoid listing them all out):

SIP/2.0 400 Bad Request
SIP/2.0 401 Unauthorized
SIP/2.0 500 Internal Server Error
SIP/2.0 604 Does not exist anywhere

Here is my current regex (doesn’t work, still trying to figure this out so please excuse if it’s not the most elegant)

(?m)^SIP/2\.0\s(400|40[2-9]|4[1-90-9]|[5-60-90-9]).*$

I can’t seem to hunt down whether or not PCRE supports character class subtraction without finding a bunch of PHP info. Any help getting this working would be really helpful. Thank
you!!!

Edit: Just modified the REGEX. I’m closer, but it’s still including 401 messages.

  • 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-06-10T08:38:08+00:00Added an answer on June 10, 2026 at 8:38 am

    [1-90-9] is equal to [0-9] seems you had something different in your mind plz explain what is your expectation

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

Sidebar

Related Questions

I'm trying to parse a MIME-Message, using SharpMimeTools and some sample Mime Messages from
Am trying to parse the RSS feed from www.ted.com/talks/rss, I can access all normal
I am trying parse out 3 pieces of information from a String . Here
When trying to parse the method return type, method name, and parameters from the
I'm trying to parse json data from the facebook c# sdk. The json data
I'm trying to parse the json response from the Google Geocode API but I'm
Trying to parse a csv file that has all the data wrapped in double
I have a problem when trying to parse an XML from a string. I'm
Trying to parse out lat/lon from a google maps rss feed: $file = http://maps.google.com/maps/ms?ie=UTF8&hl=en&vps=1&jsv=327b&msa=0&output=georss&msid=217909142388190116501.000473ca1b7eb5750ebfe;
Im trying to parse a Xml file from a URL, the xml is actually

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.