https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/matchvar paragraph = '222323';var regex = '[0-9]{3,}'; //with at least 3 and above digitsvar found = paragraph.match(regex);console.log(found);//which return back the array of numbers
No comments:
Post a Comment