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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:28:14+00:00 2026-06-15T00:28:14+00:00

I am working on an application which at some point, needs to automatically read

  • 0

I am working on an application which at some point, needs to automatically read an ID number of the type “X00001”. It comes in a string from a sql database, but my program only needs the “00001” part.

How can I use the String.split() method (or any other method) to get rid of the letters in the code?

Note there is only one note letter per code, so eliminating the first character of the code would be enough for me. I have thought of converting the string to a char[] array, and then extract from it only the other characters, but I thought it was a nice idea to learn how to use the split() Method.

  • 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-15T00:28:16+00:00Added an answer on June 15, 2026 at 12:28 am

    This really isn’t a job for split. If you know you’re taking off the first character of the string, use Substring.

    // take the substring from element 1 to the end
    string needle = haystack.Substring(1); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an application which has got some sensitive information. I am
I am working on an iPhone application which lists some items in a Table
I have one web application which I have been working for some time.I am
I am working on application which needs to be authenticated in different domain. To
I'm working on a questionnaire type application in which questions are stored in a
I am writing an application using cocoa which, in some point (surprise), opens window.
I am working on the desktop application which needs to print the bill.I am
i am working on one application which requires the feature of adding the custom
I'm working on an application which allows employees to Request time off that post
We are working on an application which processes PDF documents. One of the features

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.