console.log('https://site.com/content/images/45/1000x1000l80mc0/copy_kvadrokopter-lyzrc-l900-pro-orange-dron-z-4k-i-hd-kamerami-esc-fpv-gps-bk-motori-do-1200m-28-khvilin-50233095308044.webp'.replace(/(https:\/\/site\.com\/([^\/]+\/){3})([^\/]+\/)([^.]+).*/m, '$1$4'));