/**
* String methods: replace
* The replace() method returns a new string with some or all matches of a
* pattern replaced by a replacement.
*/
var str, x, xg, xi;
str = "simple example of simple string BIG big";
x = str.replace('simple', 'not simple'); //replace first match
xg = str.replace(/s\w+e/g, 'not simple'); //replace all matches
xi = str.replace(/BiG/i, 'SmaLL'); //case insensitive replacement
console.log(x); // not simple example of simple string BIG big
console.log(xg); // not simple example of not simple string BIG big
console.log(xi); // simple example of simple string SmaLL big
not simple example of simple string BIG big not simple example of not simple string BIG big simple example of simple string SmaLL big
$ps -aux | grep node (list all node processes) sasa 1208 0.3 0.2 1310368 48940 ? Ssl 2025 1667:01 node /home/sasa/dex8/dex8-panel/server/index.js sasa 1236 0.5 0.4 11821104 74828 ? Ssl 2025 2632:05 node /home/sasa/mikosoft_hr/www-mikosoft-hr/server/index.js sasa 1257 0.3 0.2 1307544 48512 ? Ssl 2025 1687:30 node /home/sasa/mikosoft-info/www-mikosoft-info/server/index.js sasa 1289 0.3 0.2 1301856 44500 ? Ssl 2025 1661:43 node /home/sasa/dex8/dex8-kiosk/server/index.js sasa 1363 4.2 3.2 12283548 539620 ? Ssl 2025 21428:45 node /home/sasa/voovuu/voovuu-pub/server/index.js sasa 1886 8.0 4.2 12372468 694964 ? Ssl 2025 40484:31 node /home/sasa/mikosoft-info/crypto-mikosoft-info/server/index. sasa 1214480 0.3 0.5 22311168 92604 ? Ssl 2025 1476:49 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214483 0.3 0.2 1101568 34864 ? Ssl 2025 1360:30 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214536 0.3 0.2 1101316 35332 ? Ssl 2025 1358:39 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214544 0.3 0.2 1102312 35512 ? Ssl 2025 1369:58 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214588 0.3 0.2 1102340 35456 ? Ssl 2025 1363:09 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214617 0.3 0.2 1102208 35944 ? Ssl 2025 1358:11 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214641 0.3 0.2 1166184 33660 ? Ssl 2025 1349:47 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214671 0.3 0.2 1100128 33152 ? Ssl 2025 1343:12 node /home/sasa/dex8/dex8-worker/starter.js sasa 1216489 0.3 0.2 1102072 34476 ? Ssl 2025 1359:02 node /home/sasa/dex8/dex8-worker/starter.js sasa 1399960 0.8 0.5 11817308 91648 ? Ssl Apr20 2141:24 node /home/sasa/dex8/dex8-www/server/index.js sasa 1631573 0.6 0.3 1304804 59144 ? Ssl May31 1147:01 node /home/sasa/.pm2/modules/pm2-logrotate/node_modules/pm2-logr sasa 1824679 0.4 0.3 11799104 58020 ? Ssl Aug15 357:39 node /home/sasa/kriptus/kriptus-panel/server/index.js sasa 2072475 0.7 0.5 1162936 94188 ? Ssl Sep24 149:49 node /home/sasa/voovuu/voovuu-api/starter.js sasa 2075109 9.8 0.5 11710768 94616 ? Ssl Sep24 1913:38 node /home/sasa/dex8/dex8-api/starter.js sasa 2075416 0.6 0.3 1331640 60220 ? Ssl Sep24 127:09 node /home/sasa/mikosoft-info/api-mikosoft-info/starter.js sasa 2448036 1.2 0.9 11907572 156348 ? Ssl Aug21 834:41 node /home/sasa/miko/miko-hr/server/index.js sasa 2663246 2.2 0.6 11850840 112428 ? Ssl Aug23 1473:49 node /home/sasa/kriptus/kriptus-api/starter.js sasa 3168557 0.6 0.4 11813332 81588 ? Ssl 2025 2983:21 node /home/sasa/mikosoft-info/dodo-mikosoft-info/server/index.js sasa 3169051 0.5 0.3 11799488 54780 ? Ssl 2025 2445:07 node /home/sasa/@mikosoft/dodo-examples/server/index.js sasa 3615181 0.5 0.5 1330524 82148 ? Ssl Oct07 4:23 node /home/sasa/miko/miko-hr/api/starter.js www-data 3673057 0.0 0.0 2608 532 ? S 08:53 0:00 sh -c ps -aux | grep node www-data 3673059 0.0 0.0 3304 704 ? S 08:53 0:00 grep node sasa 3809381 0.3 0.5 22301384 82588 ? Ssl Sep02 183:12 node /home/sasa/dex8/dex8-worker/starter.js