I need a regular expression that can remove the dashes and characters so im just left with a number.
For example, if i have this:
1-Vehicle
and i use the regex on it i would get this:
1
Any help would be great.
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.
You can use this regex. It will give you all the digits after removing all other characters.