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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:49:43+00:00 2026-06-01T23:49:43+00:00

I have this string I have retrieved from a File.ReadAllText: 6 11 rows processed

  • 0

I have this string I have retrieved from a File.ReadAllText:

6   11 rows processed

As you can see there is always an integer specifying the line number in this document. What I am interested in is the integer that comes after it and the words “rows processed”. So in this case I am only interested in the substring “11 rows processed”.

So, knowing that each line will start with an integer and then some white space, I need to be able to isolate the integer that follows it and the words “rows processed” and return that to a string by itself.

I have been told this is easy to do with Regex, but so far I haven’t the faintest clue how to build it.

  • 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-01T23:49:45+00:00Added an answer on June 1, 2026 at 11:49 pm

    This should work for what you need:

    \d+(.*)
    

    This searches for 1 or more digits (\d+) and then it puts everything afterwards in a group:

    . = any character
    * = repeater (zero or more of the preceding value (which is any character in the above
    () = grouping
    

    However, Jason is correct in that you only need to use a split function

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

Sidebar

Related Questions

I have a XML String retrieved from a XML file. I can't access the
I have this string of numbers var array = 1,6,2,9,5 which is retrieved from
I have this string: \Blah \'Blah\' Blah\ . There is another string inside it.
I have this string: comment_1234 I want to extract the 1234 from the string.
I have stored values retrieved from a text file into an array. Now am
I have this code to retrieve data from file then make some treatment, and
I have jokes.db database. This database file imported from using this article., http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ .
I have arraylist myorderdata . I want to retrieve this arraylist to one String
I have this string: 123-456-7 I need to get this string: 1234567 How I
I have this string stored in a variable: IN=bla@some.com;john@home.com Now I would like to

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.