how to split the numeric values from alphanumeric string value using java script?
for example,
x = "example123";
from this i need 123
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Easiest way would be:
However, for string “example123example123” – it will return “123123”. If you need to get both numbers as separate values, then it would be a little more complex: