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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:52:07+00:00 2026-05-15T23:52:07+00:00

I have one string which contain number and character. I need to separate number

  • 0

I have one string which contain number and character. I need to separate number and character. I have don’t have a delimiter in between. How can I do this.

Var selectedRow = "E0";

I need to “0” in another variable.

Help me on this.

  • 1 1 Answer
  • 1 View
  • 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-15T23:52:08+00:00Added an answer on May 15, 2026 at 11:52 pm

    Depends on the format of the selected row, if it is always the format 1char1number (E0,E1….E34) then you can do:

    var row = "E0";
    var rowChar = row.substring(0, 1);
    
    // Number var is string format, use parseInt() if you need to do any maths on it
    var number = row.substring(1, row.length);  
    //var number = parseInt(row.substring(1, row.length));  
    

    If however you can have more than 1 character, for example (E0,E34,EC5,EDD123) then you can use regular expressions to match the numeric and alpha parts of the string, or loop each character in the string.

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

Sidebar

Related Questions

I have one method in my managed bean which returns javascript as a string.
I would like to have a mapping which maps two string into one string.
I have a WCF service which accepts a string as a paramter for one
I have a function written in C# which has one parameter type as Dictionary<string
I have a String Array which is contain dates that read from a CSV
I need to validate a string, which might contain alphanumeric as well as special
Many USB devices contain a unique serial number (which is actually a Unicode string)
I have created one form, which contain information of user like name, contact no,
I have to compare two strings for case insensitive equality which one is faster
I have two strings, one a key and one a value, which I would

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.