i have string like those / 5 or / 91 or / 358. I need to get the integers after last space from those strings. Here is how I do it know but it only can get one number. How to make it?
f_quantity = f_quantity.substr(f_quantity.length - 1);
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.
Simple example you can validate in a web console:
So…