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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:59:51+00:00 2026-06-11T21:59:51+00:00

Is there a Regular Expression that would give me a name value pair from

  • 0

Is there a Regular Expression that would give me a name value pair from the string below that would look like this:

statuscode = 179640000
new_Approved = 179640002

from:

&$filter=statuscode/Value eq 179640000 and new_Approved/Value eq 179640000

  • 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-11T21:59:52+00:00Added an answer on June 11, 2026 at 9:59 pm

    the sample program:

        public static void Main()
        {
            string src = "&$filter=statuscode/Value eq 179640000 and new_Approved/Value eq 179640000";
            Regex regex = new Regex(@"(\w*)/Value eq (\w*)");
    
            foreach (Match m in regex.Matches(src))
            {
                foreach (Group g in m.Groups)
                {
                    Console.WriteLine(g.Value);
                }
            }
        }
    

    gives the following output

    statuscode/Value eq 179640000
    statuscode
    179640000
    new_Approved/Value eq 179640000
    new_Approved
    179640000
    Press any key to continue . . .
    

    What you have for each group in a match is:

    1. the match itself
    2. the name of the value
    3. the value itself.

    It assumes that all names and values are only alphanumeric and '_', It also assumes that there are no other curveballs that your source string has.

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

Sidebar

Related Questions

Let's say for example that I have a regular expression like this: The quick
I would like to construct a regular expression that matches any letter (including accented
Could you help me figure out a regular expression that would extract from url:
I created this regular expression to validate names: ^[a-zA-Z0-9\s\-\,]+.\*?$ Is there a way add
I want to write a regular expression that will match the following string a
Is there a search engine, that would allow me to search by a regular
I'm trying to write a regular expression that will match a variable length string,
I've been playing around with retrieving data from a string using regular expression, mostly
I have some ActionScript code that splits a string using Regular Expression and lets
Are there regular expression equivalents for searching and modifying tree structures? Concise mini-languages (like

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.