<script> str = "/&fff7321вв/;/jjj123;gggg456".replace(/(?<=\d+[\D]+)\d+/g, '') document.write(str) </script>