How can regularities be replaced in batches according to the mapping relationship?

such as

var map = {
    a: 1,
    b :2,
    c :3
}
As a matter of fact, there is no map object for

. I hope this map is a regular expression. How to write to realize the change from "abc" to 123" and how to find this regular expression with replace

?
Mar.07,2021

is roughly as follows:
'abcdabcdeabceee'.replace (/ abc/g,' 123')
/ / 123d123de123eee
I don't know what your mapping relationship is?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32a34-2be29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32a34-2be29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?