JSFiddle - React, Tailwind, and code Playground

by Sreeraj Saseendran

JavaScript

var str = 'sree412334 5f33456dddf4111111 111111111';

var matches = str.replaceAll(' ','').match(/\d{10,}/g);

console.log(matches);