My attempt
preg_match("/^logs.\d{24}.\d{24}.{4}$/", $input_line, $output_array);
If matched return \d{24} in echo
String
logs/532523532543353444444444/532523532543353444444444.log
Preg match peseudo-code : logs/{24 digitals}/{same24digits}.log
Both \d{24} are the same number
Question How to get the : If matched return \d{24} in echo