/**
* 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 1194 0.4 0.5 1305796 84060 ? Ssl 2025 1171:38 node /home/sasa/.pm2/modules/pm2-logrotate/node_modules/pm2-logr sasa 1208 0.3 0.4 1304488 72576 ? Ssl 2025 842:30 node /home/sasa/dex8/dex8-panel/server/index.js sasa 1224 0.7 0.6 11817036 101728 ? Ssl 2025 1875:38 node /home/sasa/dex8/dex8-www/server/index.js sasa 1236 0.5 0.6 11821328 104152 ? Ssl 2025 1333:13 node /home/sasa/mikosoft_hr/www-mikosoft-hr/server/index.js sasa 1257 0.3 0.4 1303896 72392 ? Ssl 2025 855:19 node /home/sasa/mikosoft-info/www-mikosoft-info/server/index.js sasa 1289 0.3 0.4 1298028 68312 ? Ssl 2025 841:00 node /home/sasa/dex8/dex8-kiosk/server/index.js sasa 1363 4.5 4.1 12374236 686164 ? Ssl 2025 10704:01 node /home/sasa/voovuu/voovuu-pub/server/index.js sasa 1886 3.5 2.3 12060332 387704 ? Ssl 2025 8407:35 node /home/sasa/mikosoft-info/crypto-mikosoft-info/server/index. sasa 1214480 0.3 0.7 22311168 126092 ? Ssl 2025 561:37 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214483 0.3 0.4 1101568 66380 ? Ssl 2025 486:00 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214536 0.3 0.4 1101060 66508 ? Ssl 2025 484:47 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214544 0.3 0.4 1101032 66004 ? Ssl 2025 488:09 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214588 0.3 0.4 1102852 67060 ? Ssl 2025 485:50 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214617 0.3 0.4 1102208 66904 ? Ssl 2025 484:35 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214641 0.3 0.3 1100648 64328 ? Ssl 2025 477:31 node /home/sasa/dex8/dex8-worker/starter.js sasa 1214671 0.3 0.3 1100128 63700 ? Ssl 2025 475:45 node /home/sasa/dex8/dex8-worker/starter.js sasa 1215731 0.6 0.7 11709368 123704 ? Ssl 2025 978:19 node /home/sasa/dex8/dex8-api/starter.js sasa 1216489 0.3 0.4 1102584 66652 ? Ssl 2025 484:09 node /home/sasa/dex8/dex8-worker/starter.js sasa 2509059 0.5 0.5 11806232 98264 ? Ssl Feb14 429:56 node /home/sasa/miko/miko-hr/server/index.js sasa 2628167 0.8 0.8 1178712 131840 ? Ssl 2025 1893:50 node /home/sasa/voovuu/voovuu-api/starter.js sasa 3168557 0.6 0.5 11814032 97200 ? Ssl 2025 1361:03 node /home/sasa/mikosoft-info/dodo-mikosoft-info/server/index.js sasa 3169051 0.5 0.5 11799176 84840 ? Ssl 2025 1121:19 node /home/sasa/@mikosoft/dodo-examples/server/index.js sasa 3264954 0.6 0.5 1331784 85284 ? Ssl Feb21 422:13 node /home/sasa/mikosoft-info/api-mikosoft-info/starter.js sasa 3985796 0.3 0.3 1099104 64468 ? Ssl 04:03 2:19 node /home/sasa/dex8/dex8-worker/starter.js www-data 4039675 0.0 0.0 2608 600 ? S 15:59 0:00 sh -c ps -aux | grep node www-data 4039677 0.0 0.0 3304 716 ? S 15:59 0:00 grep node