JSFiddle - React, Tailwind, and code Playground

HTML

<p>2132124  12123 11 1 '121''
    <a href="https://www.google.com/423423423423"> View Largert Map</a>
    
</p>

JavaScript

$('p').contents().filter(function () { return this.nodeType === 3; }).each(function(){
    $(this).replaceWith($(this).text().replace( /([0-9(),-:]+)/g , '<span class="number">$1</span>'));
 });