Split a string with number, percentage and text in JavaScript
How can I split this string 42% recycled nylon 41% nylon 17% elastane into 42% recycled nylon 41% nylon 17% elastane (with regex?) ? I have already tried and used .split(/s(?=d)/) but this turns the string into this : 42%…