<span id="pr-curr" class="prices-current js-prices-current"> 2396 руб </span> <script> var js_full_price = document.getElementById('pr-curr').textContent.match(/\d+/); alert( js_full_price ); </script>