JSFiddle - React, Tailwind, and code Playground
JavaScript
var str = 'sree412334 5f33456dddf4111111 111111111';
var matches = str.replaceAll(' ','').match(/\d{10,}/g);
console.log(matches);
var str = 'sree412334 5f33456dddf4111111 111111111';
var matches = str.replaceAll(' ','').match(/\d{10,}/g);
console.log(matches);