-1
#### ile değiştirmek istiyorum ## - ## (#: = herhangi bir rakam sembolü).RegExp yerine desenle eşleşmiyor
if (/^([0-9]{2})([0-9]{2})$/.test(str)) {
str = str.replace("/^([0-9]{2})([0-9]{2})$/", "$1-$2");
console.log(str);
}
Konsolda #### (not ## - ##) olsun.
Neyi yanlış yapıyorum?