<script> let path = `table:nth-of-type(2) tr.table__row:nth-of-type(1)`; let reg = /\d+(?=\D+$)/; path = path.replace(reg, "3"); document.write(path) </script>