"[0-9a-zA-Z]{13}", "w" => "[0-9]+%?", "h" => "[0-9]+%?", "x" => "[0-9]+", "y" => "[0-9]+", "t" => "jpg|png", "q" => "1?[0-9]{1,2}" ); // check tags and save correct values in array for ($i=0; $i