JSFiddle - React, Tailwind, and code Playground

by ChangJoo Park

JavaScript

str = '1. apple 2. kiwi 3. banana'
console.log(str.split(/[0-9]./g))