I am still new on regex (I should learn), I just need JS regex to extract string and number from a text like this: [number][string].
( /^(\d+).(\s+)/?)
Any help please?
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.
I think you are looking for ‘
/\d+[a-z]+/gi‘ :UPDATE:
xis array. You can iterate over it and extract number and text:P.S.: About
\s:http://en.wikipedia.org/wiki/Regular_expression#Examples