คัดลอกรหัสรหัสดังนี้: var s = "abachdas"; var s2 = s.replace (ใหม่ regexp (/(a)/), 'b');