다음과 같이 코드 코드를 복사하십시오. var s = "Abachdas"; var s2 = s.replace (new regexp (/(a)/), 'b');