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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:21:16+00:00 2026-05-15T05:21:16+00:00

Hi ive got this regular expression and that extracts numbers from a string string.Join(null,System.Text.RegularExpressions.Regex.Split(expr,

  • 0

Hi ive got this regular expression and that extracts numbers from a string

string.Join(null,System.Text.RegularExpressions.Regex.Split(expr, "[^\\d]"));

so eg, the format of my string is like this strA:12, strB:14, strC:15

so the regex returns 121415

how can I modify the expression to return
12,14,15 instead, any suggestions please

  • 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-15T05:21:17+00:00Added an answer on May 15, 2026 at 5:21 am

    You’re calling String.Join, which joins an array of strings into a single string, separating each element by the separator parameter.

    Since you’re passing null as that parameter, it doesn’t put anything between the strings.

    You need to pass ", " instead of null to separate each string with ,.

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

Sidebar

Related Questions

I've got this regular expression which removes common words( $commonWords ) from a string(
I've got a regular expression that looks something like this: a(|bc) this expression matches
ok ive got this code: public static string ScreenScrape(string url) { System.Net.WebRequest request =
I've got a string split, using a regular expression. Regex.Split(str, @\s); What does this
I've got a regular expression that match everything between <anything> and I'm using this:
I've got the following regular expression that works fine on my testing server, but
I've got this date time string: post[date] = 2007-07-18 10:03:19 I'd like to extract
i've got this tables in my database. alt text http://img166.imageshack.us/img166/3133/testdbschemafy5.png With Entity Framework i
I've got this nasty problem where sending multiple, large messages in quick succession from
I'm having trouble with an Expect regular expression. I'm trying to match on this

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.