/** * 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 890 0.5 0.5 11797276 83876 ? Ssl 2024 1531:23 node /home/sasa/mikosoft_hr/www-mikosoft-hr/server/index.js sasa 903 0.7 0.5 1331320 84464 ? Ssl 2024 2170:58 node /home/sasa/mikosoft-info/api-mikosoft-info/starter.js sasa 929 0.3 0.4 1302328 70448 ? Ssl 2024 1024:22 node /home/sasa/mikosoft-info/www-mikosoft-info/server/index.js sasa 943 0.3 0.4 1303368 69532 ? Ssl 2024 1002:43 node /home/sasa/dex8/dex8-kiosk/server/index.js sasa 980 0.5 0.5 11802336 91192 ? Ssl 2024 1647:30 node /home/sasa/mikosoft-info/dodo-mikosoft-info/server/index.js sasa 981 0.5 0.6 1153712 109000 ? Ssl 2024 1701:54 node /home/sasa/voovuu/voovuu-api/starter.js sasa 1039 0.8 1.8 12075304 306536 ? Ssl 2024 2506:45 node /home/sasa/voovuu/voovuu-pub/server/index.js www-data 1228455 0.0 0.0 2608 600 ? S 16:49 0:00 sh -c ps -aux | grep node www-data 1228457 0.0 0.0 3304 724 ? S 16:49 0:00 grep node sasa 1788108 0.4 0.5 11806900 87736 ? Ssl Mar16 233:47 node /home/sasa/mikosoft-info/crypto-mikosoft-info/server/index. sasa 1790865 0.7 0.5 11801532 94644 ? Ssl Jan30 867:33 node /home/sasa/dex8/dex8-www/server/index.js sasa 1791369 0.7 0.8 11789608 139752 ? Ssl Jan30 869:16 node /home/sasa/dex8/dex8-api/starter.js sasa 2044488 0.3 0.4 1300372 69832 ? Ssl 2024 871:09 node /home/sasa/dex8/dex8-panel/server/index.js sasa 2574087 0.3 0.4 11795224 79716 ? Ssl 2024 955:27 node /home/sasa/@mikosoft/dodo-examples/server/index.js sasa 3598766 0.3 0.4 1100892 66064 ? Ssl 2024 588:29 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598767 0.3 0.4 22280560 80708 ? Ssl 2024 598:37 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598774 0.3 0.4 1101408 66776 ? Ssl 2024 590:47 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598775 0.3 0.4 1101152 66472 ? Ssl 2024 592:15 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598802 0.6 1.0 22350028 178780 ? Ssl 2024 1082:34 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598803 0.3 0.4 1100896 66556 ? Ssl 2024 588:49 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598851 0.3 0.4 1102180 67588 ? Ssl 2024 589:13 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598853 0.3 0.4 1101412 66860 ? Ssl 2024 588:56 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598925 0.3 0.5 1329408 83284 ? Ssl 2024 613:15 node /home/sasa/dex8/dex8-worker/starter.js sasa 3598927 0.3 0.4 1297676 67304 ? Ssl 2024 589:50 node /home/sasa/dex8/dex8-worker/starter.js