My string is :<div>2</div><div>3</div><div>4</div><div>5</div><div><br></div>
I need to get 2,3,4,5,
in an array using Javascript ie.anything between <div></div>
Whats the most elegant way to do this?
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.
To match anything between
<div>and</div>Another easier method
If it was just digits (like in your initial question) use this