I would like to extract texts from a numbered list to an array in javascript using regex.
- this is sentence one
- this is sentence two
- this is sentence three
Expected output:
Array = [“this is sentence one”, “this is sentence two”, “this is sentence three”]
Appreciate if explanation provided.