Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
335 B

<?php
$url = 'https://www.mouser.com/images/keystoneelectronics/images/Battery_1047_SPL.jpg';
print $url . "\n";
print preg_replace('
{
^ # start of line
(.*images/) # domain etc.
(.*)/images/ # middle bit
(.*) # image filename
$ # EOL
}x',
'$1$2/lrg/$3',
$url
);