DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Saif Sadiq
Saif Sadiq

Posted on

Need help with RegExr

This is the single string response I obtain via an API call:
"1. A game is a fun and entertaining way to learn new skills and knowledge. 2. Games can be used as an educational tool to teach important life lessons. 3. Games are a great way to spend time with friends and family while having fun."

However, I want to obtain and separate the numeric points individually instead of a whole paragraph-like text.
How can I achieve this with using RegExr or any other method in Javascript.

Thanks!

Top comments (0)

🌚 Browsing with dark mode makes you a better developer by a factor of exactly 40.

It's a scientific fact.