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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:16:01+00:00 2026-05-19T13:16:01+00:00

I recieve 7+ or 5+ or +5 from XML and wants to extract only

  • 0

I recieve “7+” or “5+” or “+5” from XML and wants to extract only the number from string using Regex.
e.g Regex.Match() function

        stringThatHaveCharacters = stringThatHaveCharacters.Trim();
        Match m = Regex.Match(stringThatHaveCharacters, "WHAT I USE HERE");
        int number = Convert.ToInt32(m.Value);
        return number;
  • 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-19T13:16:02+00:00Added an answer on May 19, 2026 at 1:16 pm

    \d+

    \d represents any digit, + for one or more. If you want to catch negative numbers as well you can use -?\d+.

    Note that as a string, it should be represented in C# as "\\d+", or @"\d+"

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

Sidebar

Related Questions

am using C#, I recieved data from xml file and place it in gridview,
I need a server to send and recieve XMPP messages from Android clients running
I;m trying to parse a json string which I receive from web server as
To send something to all clients, you use: io.sockets.emit('response', data); To receive from clients,
I am using thread which will receive messages from the external application.So my thread
I am trying to write an xmpp client to send/recieve messages from gtalk. Before
I'm trying to parse some XML data using jQuery, and as it stands I
On our site www.foo.com we want to download and use http://feeds.foo.com/feed.xml with Javascript. We'll
I have an SslStream from which I receive spontaneous XML messages. I want to
I receive from the httpservice with a certain frequency a string like this: 1#3#234525234

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.